Skip to content

Commit

Permalink
fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
jni committed Jul 4, 2024
1 parent b4995da commit 55e3328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ome_zarr/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ def __init__(self, node: Node) -> None:

# TODO: a metadata transform should be provided by specific impls.
try:
napari_version = tuple(map(int, list(version("napari").split("."))))[
:2
] # major and minor versions as int
napari_version = tuple(
map(int, list(version("napari").split(".")[:2]))
) # major and minor versions as int
except PackageNotFoundError:
napari_version = (0, 5) # default to 0.5+ if not installed
colormap_key = "colormap" if napari_version >= (0, 5) else "color"
Expand Down

0 comments on commit 55e3328

Please sign in to comment.