Skip to content

Commit

Permalink
fix error getting stage position
Browse files Browse the repository at this point in the history
  • Loading branch information
ieivanov committed Oct 24, 2023
1 parent dfecbe8 commit cba9038
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iohub/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,10 @@ def _get_pos_names(self):
if self.p > 1:
self.pos_names = []
for p in range(self.p):
name = self.reader.stage_positions[p].get("Label") or p
try:
name = self.reader.stage_positions[p]["Label"]
except (IndexError, KeyError):
name = p
self.pos_names.append(name)
else:
self.pos_names = ["0"]
Expand Down

0 comments on commit cba9038

Please sign in to comment.