vanvalenlab / cellSAM

Codebase for "A Foundation Model for Cell Segmentation"
Other
51 stars 7 forks source link

Color flag in label layer creation in widget initiation for napari plugin is deprecated #22

Open ellenemerson opened 3 months ago

ellenemerson commented 3 months ago

Get the following error when attempting to use the napari widget:

Traceback (most recent call last):
  File "napari_test.py", line 41, in <module>
    viewer.window.add_dock_widget(CellSAMWidget(viewer)) 
                                  ^^^^^^^^^^^^^^^^^^^^^
  File ".venvs/napari/lib/python3.11/site-packages/cellSAM/napari_plugin/_widget.py", line 132, in __init__
    self._mask_layer = self._viewer.add_labels(
                       ^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: add_labels() got an unexpected keyword argument 'color'

The color flag is deprecated.