From 54cce884c1b9b768f56d25bb1989974cb8b3f35d Mon Sep 17 00:00:00 2001 From: Ruben Verweij Date: Thu, 26 Sep 2019 17:21:36 +0200 Subject: [PATCH] Fix issue with bundle_axes and get_frame --- nd2reader/reader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nd2reader/reader.py b/nd2reader/reader.py index 714dc0e..cb0027f 100644 --- a/nd2reader/reader.py +++ b/nd2reader/reader.py @@ -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