Skip to content

Commit

Permalink
Don't plot initial convergence value
Browse files Browse the repository at this point in the history
This is the value from before running the first iteration. It is not very useful but shifts the plot scale.
  • Loading branch information
samtygier-stfc committed Jan 3, 2025
1 parent 7abe1a0 commit c46a879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mantidimaging/core/reconstruct/cil_recon.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __call__(self, algo: Algorithm) -> None:
if self.progress:
extra_info = {}
if algo.iterations and algo.iterations[-1] == algo.iteration:
extra_info = {'iterations': algo.iterations, 'losses': algo.loss}
extra_info = {'iterations': algo.iterations[1:], 'losses': algo.loss[1:]}
if algo.last_residual and algo.last_residual[0] == algo.iteration:
extra_info["residual"] = algo.last_residual[1]
self.progress.update(
Expand Down

0 comments on commit c46a879

Please sign in to comment.