Browse Source

Fix issue with bundle_axes and get_frame

feature/load_slices
Ruben Verweij 5 years ago
parent
commit
010073d24c
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):
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]
@property


Loading…
Cancel
Save