Skip to content
Snippets Groups Projects
Commit e65a2d3e authored by Karim Ahmed's avatar Karim Ahmed
Browse files

Workaround for SPB_CFEL_JF1M as the modules start with 09 not 01

parent c1552168
No related branches found
No related tags found
1 merge request!847[Jungfrau] Workaround for `SPB_CFEL_JF1M` as the modules start with `09` not `01`
...@@ -447,7 +447,11 @@ def init_jungfrau_geom( ...@@ -447,7 +447,11 @@ def init_jungfrau_geom(
(-1, -1) for _ in range(4)] + [(1, 1) for _ in range(4)] (-1, -1) for _ in range(4)] + [(1, 1) for _ in range(4)]
elif "JF1M" in karabo_id: elif "JF1M" in karabo_id:
nmods = 2 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)) module_pos = ((-mod_width//2, 33), (-mod_width//2, -mod_height-33))
orientations = [(-1,-1), (1,1)] orientations = [(-1,-1), (1,1)]
else: # e.g. HED_IA1_JF500K1, FXE_XAD_JF500K, FXE_XAD_JFHZ else: # e.g. HED_IA1_JF500K1, FXE_XAD_JF500K, FXE_XAD_JFHZ
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment