Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix labels napari colormaping #28

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/napari_segment_anything/_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading