Browse Source

Fix issue with bundle_axes and get_frame

master
Ruben Verweij 5 years ago
parent
commit
06de827ffc
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      nd2reader/reader.py

+ 4
- 1
nd2reader/reader.py View File

@ -71,7 +71,10 @@ class ND2Reader(FramesSequenceND):
def _get_possible_coords(self, dim, default): def _get_possible_coords(self, dim, default):
if dim in self.sizes: if dim in self.sizes:
return [default] if default is not None else range(self.sizes[dim])
if dim in self.bundle_axes:
return range(self.sizes[dim])
else:
return [default] if default is not None else range(self.sizes[dim])
return [None] return [None]
@property @property


Loading…
Cancel
Save