Skip to content

Commit 171e122

Browse files
committed
Use 'greyscale'
1 parent 6cc1c25 commit 171e122

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ome_zarr/data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def create_zarr(
118118
if pyramid[0].shape[CHANNEL_DIMENSION] == 1:
119119
image_data = {
120120
"channels": [{"window": {"start": 0, "end": 1}}],
121-
"rdefs": {"model": "grayscale"},
121+
"rdefs": {"model": "greyscale"},
122122
}
123123
else:
124124
image_data = {

ome_zarr/reader.py

+1
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ def __init__(self, node: Node) -> None:
303303
color = ch.get("color", None)
304304
if color is not None:
305305
rgb = [(int(color[i : i + 2], 16) / 255) for i in range(0, 6, 2)]
306+
# TODO: make this value an enumeration
306307
if model == "greyscale":
307308
rgb = [1, 1, 1]
308309
colormaps.append(Colormap([[0, 0, 0], rgb]))

0 commit comments

Comments
 (0)