diff options
Diffstat (limited to 'PyMca5/PyMcaGui/pymca/SilxGLWindow.py')
-rw-r--r-- | PyMca5/PyMcaGui/pymca/SilxGLWindow.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PyMca5/PyMcaGui/pymca/SilxGLWindow.py b/PyMca5/PyMcaGui/pymca/SilxGLWindow.py index d1b0380..5fe074a 100644 --- a/PyMca5/PyMcaGui/pymca/SilxGLWindow.py +++ b/PyMca5/PyMcaGui/pymca/SilxGLWindow.py @@ -153,7 +153,7 @@ def getChimeraStack(): if not fileList: return None, None filename = fileList[0] - with h5py.File(filename) as f: + with h5py.File(filename, mode='r') as f: stack = f['Image/data'][...] if not isinstance(stack, numpy.ndarray) or stack.ndim != 3: raise IOError("Problem reading stack.") |