Skip to content

Commit

Permalink
Fix for when ChNames key is not available (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoOkuma authored Oct 2, 2023
1 parent 1538005 commit d7ee0b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iohub/multipagetiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def _set_mm_meta(self):
] # empty strings

elif mm_version == "1.4.22":
for ch in self.mm_meta["Summary"]["ChNames"]:
for ch in self.mm_meta["Summary"].get("ChNames", []):
self.channel_names.append(ch)

else:
Expand All @@ -183,7 +183,7 @@ def _set_mm_meta(self):
)
self._stage_positions.append(pos)

for ch in self.mm_meta["Summary"]["ChNames"]:
for ch in self.mm_meta["Summary"].get("ChNames", []):
self.channel_names.append(ch)

# dimensions based on mm metadata
Expand Down

0 comments on commit d7ee0b5

Please sign in to comment.