diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index ef6ca2a..496b631 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -23,12 +23,12 @@ jobs: strategy: matrix: platform: [ubuntu-latest] - python-version: ['3.8', '3.9', '3.10'] + python-version: ['3.9', '3.10', '3.11'] include: - platform: windows-latest - python-version: '3.10' - - platform: macos-latest - python-version: '3.10' + python-version: '3.11' + - platform: macos-13 # arm was not working on the CI + python-version: '3.11' steps: - uses: actions/checkout@v3 diff --git a/setup.cfg b/setup.cfg index fc4e7b7..09a225e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -37,9 +37,9 @@ install_requires = segment-anything qtpy magicgui - napari + napari >= 0.5.0 -python_requires = >=3.8 +python_requires = >=3.9 include_package_data = True package_dir = =src diff --git a/src/napari_segment_anything/_widget.py b/src/napari_segment_anything/_widget.py index 39bb379..fac837d 100644 --- a/src/napari_segment_anything/_widget.py +++ b/src/napari_segment_anything/_widget.py @@ -71,7 +71,7 @@ def __init__(self, viewer: napari.Viewer, model_type: str = "default"): self._mask_layer = self._viewer.add_labels( data=np.zeros((256, 256), dtype=int), name="SAM mask", - color={1: "cyan"}, + colormap={1: "cyan", None: "transparent"}, ) self._mask_layer.contour = 2