From 8f243330806e83f50ab4bd887abfccab27bd727e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= Date: Sun, 6 Oct 2019 10:02:57 +0200 Subject: fix syntax error Gbp-Pq: Name 0002-fix-syntax-error.patch --- PyMca5/Object3D/Object3DPlugins/ChimeraStack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PyMca5/Object3D/Object3DPlugins/ChimeraStack.py b/PyMca5/Object3D/Object3DPlugins/ChimeraStack.py index 4df3aa1..f731630 100644 --- a/PyMca5/Object3D/Object3DPlugins/ChimeraStack.py +++ b/PyMca5/Object3D/Object3DPlugins/ChimeraStack.py @@ -69,7 +69,7 @@ def getObject3DInstance(config=None): #file index is irrelevant in case of an actual 3D stack. filename = fileList[0] legend = os.path.basename(filename) - with h5py.File(filename, mode='r') as f + with h5py.File(filename, mode='r') as f: stack = f['Image']['data'][()] if stack is None: raise IOError("Problem reading stack.") @@ -120,7 +120,7 @@ if __name__ == "__main__": if not os.path.exists(filename): print("File does not exists") sys.exit(1) - with h5py.File(filename, mode='r') as f + with h5py.File(filename, mode='r') as f: stack = f['Image']['data'][()] if stack is None: raise IOError("Problem reading stack.") -- cgit v1.2.3