Skip to content

Commit 7b53584

Browse files
committed
* add label property to OmeroChannel dataclass
* read channel label if present
1 parent e165c55 commit 7b53584

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ngff_zarr/from_ngff_zarr.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ def from_ngff_zarr(
165165
channels=[
166166
OmeroChannel(
167167
color=channel["color"],
168+
label=channel.get("label", None),
168169
window=OmeroWindow(
169170
min=channel["window"]["min"],
170171
max=channel["window"]["max"],

ngff_zarr/v04/zarr_metadata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class OmeroWindow:
178178
class OmeroChannel:
179179
color: str
180180
window: OmeroWindow
181+
label: Optional[str] = None
181182

182183
def validate_color(self):
183184
if not re.fullmatch(r"[0-9A-Fa-f]{6}", self.color):

0 commit comments

Comments
 (0)