From dffd3bf0067f66c4bfe0c52cf256a67de547c7a3 Mon Sep 17 00:00:00 2001
From: Valerio Mariani <valerio.mariani@desy.de>
Date: Tue, 11 Apr 2017 14:44:20 +0200
Subject: [PATCH] Fixed problem in parsing dim_structure

---
 .idea/vcs.xml    | 6 ++++++
 cfel_crystfel.py | 2 ++
 2 files changed, 8 insertions(+)
 create mode 100644 .idea/vcs.xml

diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>
\ No newline at end of file
diff --git a/cfel_crystfel.py b/cfel_crystfel.py
index 21951ef..d258807 100644
--- a/cfel_crystfel.py
+++ b/cfel_crystfel.py
@@ -84,6 +84,8 @@ def load_crystfel_geometry(filename):
 
         if v == 'ss' or v == 'fs' or v == '%':
             dim[dim_index] = v
+        elif v.isdigit():
+            dim[dim_index] = int(v)
         else:
             raise RuntimeError('Invalid dim entry: {}.'.format(v))
 
-- 
GitLab