Skip to content

Commit

Permalink
fix: prediction widget is not updated by import
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-yu committed Dec 18, 2024
1 parent f4efde4 commit bff023c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plantseg/viewer_napari/widgets/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from plantseg.tasks.io_tasks import export_image_task, import_image_task
from plantseg.tasks.workflow_handler import workflow_handler
from plantseg.viewer_napari import log
from plantseg.viewer_napari.widgets.prediction import widget_unet_prediction
from plantseg.viewer_napari.widgets.utils import _return_value_if_widget, schedule_task

current_dataset_keys: list[str] | None = None
Expand Down Expand Up @@ -101,7 +102,10 @@ def widget_open_file(
elif layer_type == ImageType.LABEL.value:
semantic_type = SemanticType.SEGMENTATION

widgets_to_update = [widget_set_voxel_size.layer]
widgets_to_update = [
widget_set_voxel_size.layer,
widget_unet_prediction.image,
]

return schedule_task(
import_image_task,
Expand Down

0 comments on commit bff023c

Please sign in to comment.