Skip to content

Commit

Permalink
chore: Update create_scts_operator_viewer function to accept img_laye…
Browse files Browse the repository at this point in the history
…r_name parameter
  • Loading branch information
dummyindex committed Jul 18, 2024
1 parent 28fa197 commit 54b45ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion livecellx/core/sct_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ def create_scts_operator_viewer(
time_span=None,
contour_sample_num=20,
skip_add_shapes=False,
img_layer_name="img_data",
) -> SctOperator:
import napari
from livecellx.core.napari_visualizer import NapariVisualizer
Expand Down Expand Up @@ -924,7 +925,7 @@ def create_scts_operator_viewer(
main_info("viewer is None, creating a new viewer...")
if img_dataset is not None:
main_info("Creating a new viewer with the img_dataset...")
viewer = napari.view_image(img_dataset.to_dask(), name="img_image", cache=True)
viewer = napari.view_image(img_dataset.to_dask(), name=img_layer_name, cache=True)
else:
main_info("Creating a new viewer because img_dataset is None...")
viewer = napari.Viewer()
Expand Down

0 comments on commit 54b45ae

Please sign in to comment.