From c3c208d3c36e6b14d827c6d0cf7066f4927e614e Mon Sep 17 00:00:00 2001 From: Egor Sobolev <egor.sobolev@xfel.eu> Date: Tue, 23 Jul 2024 20:51:35 +0200 Subject: [PATCH] Fix xwiz unit_cell file parameter name --- src/geomtools/sfx/xwizio.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/geomtools/sfx/xwizio.py b/src/geomtools/sfx/xwizio.py index 1930f5b..4743a2f 100644 --- a/src/geomtools/sfx/xwizio.py +++ b/src/geomtools/sfx/xwizio.py @@ -26,7 +26,9 @@ def parse_xwiz_summary(filename): else: group[key] = val - cell_path = xwiz_conf["unit_cell"]["file"] + cell_path = xwiz_conf["unit_cell"].get("file_path") + if cell_path is None: + cell_path = xwiz_conf["unit_cell"].get("file") cell_name = os.path.basename(cell_path) summary = "" for line in f: -- GitLab