From e65a2d3e368661e35861bc7f8e512d2283542139 Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Fri, 5 May 2023 12:19:20 +0200 Subject: [PATCH] Workaround for SPB_CFEL_JF1M as the modules start with 09 not 01 --- src/cal_tools/plotting.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cal_tools/plotting.py b/src/cal_tools/plotting.py index 544b6ce8c..8638d957d 100644 --- a/src/cal_tools/plotting.py +++ b/src/cal_tools/plotting.py @@ -447,7 +447,11 @@ def init_jungfrau_geom( (-1, -1) for _ in range(4)] + [(1, 1) for _ in range(4)] elif "JF1M" in karabo_id: nmods = 2 - expected_modules = [f"JNGFR{i:02d}" for i in range(1, nmods+1)] + st_modno = 1 + # TODO: This is a temporary workaround. A proper solution is needed. + if karabo_id == "SPB_CFEL_JF1M": + st_modno = 9 + expected_modules = [f"JNGFR{i:02d}" for i in range(st_modno, st_modno+nmods)] module_pos = ((-mod_width//2, 33), (-mod_width//2, -mod_height-33)) orientations = [(-1,-1), (1,1)] else: # e.g. HED_IA1_JF500K1, FXE_XAD_JF500K, FXE_XAD_JFHZ -- GitLab