Skip to content

Commit

Permalink
Resolve 'float' is not assignable to 'int' (reportReturnType)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackEAllen committed Nov 1, 2024
1 parent cfd1587 commit ed29ccd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mantidimaging/gui/dialogs/cor_inspection/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def optimal_rotation_centre(self) -> ScalarCoR:
return self.presenter.optimal_rotation_centre

@property
def optimal_iterations(self) -> int:
def optimal_iterations(self) -> int | float:
return self.presenter.optimal_iterations

def mark_best_recon(self, diffs) -> None:
Expand Down
2 changes: 1 addition & 1 deletion mantidimaging/gui/windows/recon/presenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _do_refine_iterations(self) -> None:
if res == CORInspectionDialogView.Accepted:
new_iters = dialog.optimal_iterations
LOG.debug(f'New optimal iterations: {new_iters}')
self.view.num_iter = new_iters
self.view.num_iter = int(new_iters)

def do_cor_fit(self) -> None:
self.model.do_fit()
Expand Down

0 comments on commit ed29ccd

Please sign in to comment.