Skip to content

Commit de2da97

Browse files
committed
Remove vispy requirement
1 parent 704462b commit de2da97

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

.isort.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[settings]
2-
known_third_party = cv2,dask,numpy,pytest,scipy,setuptools,skimage,vispy,zarr
2+
known_third_party = cv2,dask,numpy,pytest,scipy,setuptools,skimage,zarr
33
multi_line_output=6
44
include_trailing_comma=False
55
force_grid_wrap=0

ome_zarr/reader.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import dask.array as da
99
import numpy as np
1010
from dask import delayed
11-
from vispy.color import Colormap
1211

1312
from .io import ZarrLocation
1413
from .types import JSONDict
@@ -337,7 +336,7 @@ def __init__(self, node: Node) -> None:
337336
# TODO: make this value an enumeration
338337
if model == "greyscale":
339338
rgb = [1, 1, 1]
340-
colormaps.append(Colormap([[0, 0, 0], rgb]))
339+
colormaps.append((([0, 0, 0], rgb))
341340

342341
label = ch.get("label", None)
343342
if label is not None:

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def read(fname):
2424
install_requires += (["requests"],)
2525
install_requires += (["scikit-image"],)
2626
install_requires += (["toolz"],)
27-
install_requires += (["vispy"],)
2827
install_requires += (["opencv-contrib-python-headless"],)
2928

3029

0 commit comments

Comments
 (0)