From 31f80554b1028415f4c0408cfd542a72a377b353 Mon Sep 17 00:00:00 2001 From: Ruben Verweij Date: Wed, 16 Oct 2019 14:56:43 +0200 Subject: [PATCH] Issue #24: only return a Frame when bundle_axes is only y,x --- nd2reader/reader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nd2reader/reader.py b/nd2reader/reader.py index 45aefe6..bb3de61 100644 --- a/nd2reader/reader.py +++ b/nd2reader/reader.py @@ -106,6 +106,9 @@ class ND2Reader(FramesSequenceND): # Actually get the corresponding Frame results[index] = Frame(self._parser.get_image_by_attributes(*current_coords), metadata=self.metadata) + if len(bundle_axes) == 0: + return results[0] + return results def _get_possible_coords(self, dim, default):