Skip to content

Commit

Permalink
Remove unnecessary string formatting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
samtygier-stfc committed Jan 3, 2025
1 parent 13ab985 commit 3f6d90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mantidimaging/core/utility/progress_reporting/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def update(self,
mean_time = self.calculate_mean_time(self.progress_history)
eta = mean_time * (self.end_step - self.current_step)

msg = f"{f'{msg}' if len(msg) > 0 else ''} | {self.current_step}/{self.end_step} | " \
msg = f"{msg} | {self.current_step}/{self.end_step} | " \
f"Time: {self._format_time(self.execution_time())}, ETA: {self._format_time(eta)}"
step_details = ProgressHistory(time.perf_counter(), self.current_step, msg)
self.progress_history.append(step_details)
Expand Down

0 comments on commit 3f6d90d

Please sign in to comment.