Skip to content

Commit

Permalink
refactor: optim.iterations -> optim.result.n_iterations
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyPlanden committed Aug 5, 2024
1 parent c2dd480 commit cb84cdc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion examples/notebooks/optimiser_calibration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
"source": [
"for optim, sigma in zip(optims, sigmas):\n",
" print(\n",
" f\"| Sigma: {sigma} | Num Iterations: {optim.iterations} | Best Cost: {optim.pints_optimiser.f_best()} | Results: {optim.pints_optimiser.x_best()} |\"\n",
" f\"| Sigma: {sigma} | Num Iterations: {optim.result.n_iterations} | Best Cost: {optim.pints_optimiser.f_best()} | Results: {optim.pints_optimiser.x_best()} |\"\n",
" )"
]
},
Expand Down
4 changes: 0 additions & 4 deletions pybop/optimisers/base_pints_optimiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,3 @@ def set_threshold(self, threshold=None):
self._threshold = None
else:
self._threshold = float(threshold)

@property
def iterations(self):
return self._iterations

0 comments on commit cb84cdc

Please sign in to comment.