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

OpenCell reader extension #197

Merged
merged 4 commits into from
Oct 25, 2023
Merged
Changes from 1 commit
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
14 changes: 8 additions & 6 deletions iohub/multipagetiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,17 @@ def _set_mm_meta(self):
for ch in self.mm_meta["Summary"]["ChNames"]:
self.channel_names.append(ch)

# dimensions based on mm metadata
# do not reflect final written dimensions
# these will change after data is loaded
self.z_step_size = self.mm_meta["Summary"]["z-step_um"]
self.height = self.mm_meta["Summary"]["Height"]
self.width = self.mm_meta["Summary"]["Width"]
self.frames = self.mm_meta["Summary"]["Frames"]
self.slices = self.mm_meta["Summary"]["Slices"]
self.channels = self.mm_meta["Summary"]["Channels"]

# dimensions based on mm metadata
# do not reflect final written dimensions
# these set in _gather_index_maps
#
# self.frames = self.mm_meta["Summary"]["Frames"]
# self.slices = self.mm_meta["Summary"]["Slices"]
# self.channels = self.mm_meta["Summary"]["Channels"]
Comment on lines +215 to +222
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this @ziw-liu. I commented out these lines so they don't overwrite the dimensions set by _gather_index_maps


def _simplify_stage_position(self, stage_pos: dict):
"""
Expand Down
Loading