Skip to content

Commit

Permalink
don't overwrite frames, slices, and channels in _set_mm_meta
Browse files Browse the repository at this point in the history
  • Loading branch information
ieivanov committed Oct 24, 2023
1 parent 3256e0a commit dfecbe8
Showing 1 changed file with 8 additions and 6 deletions.
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"]

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

0 comments on commit dfecbe8

Please sign in to comment.