summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPicca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>2019-10-06 10:02:57 +0200
committerPicca Frédéric-Emmanuel <picca@debian.org>2019-10-10 12:58:15 +0200
commit8f243330806e83f50ab4bd887abfccab27bd727e (patch)
tree86298c57bbb966027684ed3517706e28cc11d6b7
parente569e9a5fc17f42aff63af16364f2aea498f2b67 (diff)
fix syntax error
Gbp-Pq: Name 0002-fix-syntax-error.patch
-rw-r--r--PyMca5/Object3D/Object3DPlugins/ChimeraStack.py4
1 files 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.")