Skip to content

Commit

Permalink
Support MM 2.0.1 for single page TIFFs (#179)
Browse files Browse the repository at this point in the history
support MM 2.0.1 for single page TIFFs
  • Loading branch information
ziw-liu authored Aug 23, 2023
1 parent c52944b commit e19d1f1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions iohub/singlepagetiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,14 @@ def _set_mm_meta(self, one_pos):
elif "gamma" in mm_version:
self._mm2gamma_meta_parser()
else:
raise NotImplementedError(
"Current MicroManager reader only supports version "
f"1.4.22 and 2.0 but {mm_version} was detected"
)
try:
self._mm2gamma_meta_parser()
except Exception:
raise RuntimeError(
"Current MicroManager reader only supports version "
f"1.4.22 and 2.0 but {mm_version} was detected. "
"Metadata parsing failed."
)

def get_zarr(self, position):
"""
Expand Down

0 comments on commit e19d1f1

Please sign in to comment.