Browse Source

Issue #24: only return a Frame when bundle_axes is only y,x

zolfa-add_slices_loading
Ruben Verweij 5 years ago
parent
commit
31f80554b1
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      nd2reader/reader.py

+ 3
- 0
nd2reader/reader.py View File

@ -106,6 +106,9 @@ class ND2Reader(FramesSequenceND):
# Actually get the corresponding Frame # Actually get the corresponding Frame
results[index] = Frame(self._parser.get_image_by_attributes(*current_coords), metadata=self.metadata) results[index] = Frame(self._parser.get_image_by_attributes(*current_coords), metadata=self.metadata)
if len(bundle_axes) == 0:
return results[0]
return results return results
def _get_possible_coords(self, dim, default): def _get_possible_coords(self, dim, default):


Loading…
Cancel
Save