From 2e7cccba44f3b03446fade56b552a149d3b878af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=2E=20Armando=20Sol=C3=A9?= Date: Wed, 23 Jun 2021 16:13:53 +0200 Subject: [PATCH] Closes #810 --- PyMca5/PyMcaIO/HDF5Stack1D.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PyMca5/PyMcaIO/HDF5Stack1D.py b/PyMca5/PyMcaIO/HDF5Stack1D.py index d7279efe6..a1e7249e4 100644 --- a/PyMca5/PyMcaIO/HDF5Stack1D.py +++ b/PyMca5/PyMcaIO/HDF5Stack1D.py @@ -289,6 +289,7 @@ def loadFileList(self, filelist, selection, scanlist=None): considerAsImages = False dim0, dim1, mcaDim = self.getDimensions(nFiles, nScans, shape, index=mcaIndex) + _logger.debug("Returned dimensions = %d, %d, %d" % (dim0, dim1, mcaDim)) try: if self.__dtype in [numpy.float32, numpy.int32]: bytefactor = 4 @@ -329,7 +330,8 @@ def loadFileList(self, filelist, selection, scanlist=None): raise MemoryError("Force dynamic loading") else: raise MemoryError("Force dynamic loading") - if (mcaIndex == 0) and ( nFiles == 1) and (nScans == 1): + if (mcaIndex == 0) and ( nFiles == 1) and (nScans == 1) \ + and (len(yDataset.shape) > 1): #keep the original arrangement but in memory self.data = numpy.zeros(yDataset.shape, self.__dtype) considerAsImages = True