From ff90b87cad51f74c5033d461237b3173ba9da9f9 Mon Sep 17 00:00:00 2001
From: Egor Sobolev <egor.sobolev@xfel.eu>
Date: Thu, 21 Mar 2024 20:08:31 +0100
Subject: [PATCH] Convert run to list from xwiz_conf if it scalar

---
 src/geomtools/sfx/report.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/geomtools/sfx/report.py b/src/geomtools/sfx/report.py
index 8e19bca..b6ee4c2 100644
--- a/src/geomtools/sfx/report.py
+++ b/src/geomtools/sfx/report.py
@@ -83,6 +83,8 @@ def push_geometry():
 
     propno = int(xwiz_conf['data']['proposal'])
     runs = eval(xwiz_conf['data']['runs'])
+    if not hasattr(runs, '__len__'):
+        runs = [runs]
     print("Proposal:", propno)
     print("Runs:", runs)
 
-- 
GitLab