Skip to content

Commit

Permalink
fixed clear plot on training reset (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
mese79 authored Jan 16, 2025
1 parent 054b4a6 commit 6a66577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/careamics_napari/widgets/train_progress_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _update_training_state(self: Self, state: TrainingState) -> None:
Training state.
"""
if state == TrainingState.IDLE or state == TrainingState.TRAINING:
self.plot.clear()
self.plot.clear_plot()

def _update_max_epoch(self: Self, max_epoch: int):
"""Update the maximum number of epochs in the progress bar.
Expand Down

0 comments on commit 6a66577

Please sign in to comment.