Browse Source

Add ability to bundle the color axis

feature/load_slices
Ruben Verweij 8 years ago
parent
commit
c2e48e36db
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      nd2reader/reader.py

+ 2
- 2
nd2reader/reader.py View File

@ -51,7 +51,7 @@ class ND2Reader(FramesSequenceND):
if fetch_all_channels: if fetch_all_channels:
return self._get_frame_all_channels(i) return self._get_frame_all_channels(i)
else: else:
return self.get_frame_2D(c, i, 0)
return self.get_frame_2D(self.default_coords['c'], i, self.default_coords['z'])
def _get_frame_all_channels(self, i): def _get_frame_all_channels(self, i):
""" """
@ -60,7 +60,7 @@ class ND2Reader(FramesSequenceND):
""" """
frames = None frames = None
for c in range(len(self.metadata["channels"])): for c in range(len(self.metadata["channels"])):
frame = self.get_frame_2D(c, i, 0)
frame = self.get_frame_2D(c, i, self.default_coords['z'])
if frames is None: if frames is None:
frames = Frame([frame]) frames = Frame([frame])
else: else:


Loading…
Cancel
Save