We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1aecb8 commit d35da41Copy full SHA for d35da41
napari_cellseg3d/_tests/test_training.py
@@ -92,3 +92,15 @@ def test_unsupervised_training(make_napari_viewer_proxy):
92
)
93
94
assert isinstance(res, TrainingReport)
95
+ assert not res.show_plot
96
+ widget.worker.config.eval_volume_dict = [
97
+ {"image": im_path_str, "label": im_path_str}
98
+ ]
99
+ widget.worker._get_data()
100
+ eval_res = widget.worker._eval(
101
+ model=WNetFixture(),
102
+ epoch=-10,
103
+ )
104
+ assert isinstance(eval_res, TrainingReport)
105
+ assert eval_res.show_plot
106
+ assert eval_res.epoch == -10
0 commit comments