Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change exception to warning if xy_scale_size metadata is absent #182

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion iohub/multipagetiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ def _infer_image_meta(self):
def xy_pixel_size(self):
"""XY pixel size of the camera in micrometers."""
if self._xy_pixel_size is None:
raise AttributeError("XY pixel size cannot be determined.")
logging.warning(
"XY pixel size cannot be determined. Returning 1.0 um."
)
return 1.0
return self._xy_pixel_size

def _get_dimensions(self, position):
Expand Down