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

enable running xfel-calibrate CLI for GH2 and LPDMini with / in the karabo das

parent a00fedbf
No related branches found
No related tags found
1 merge request!807[GH2][CORRECT][DARK] Feat/add support for gh2 25um
......@@ -112,6 +112,11 @@ def balance_sequences(in_folder: str, run: int, sequences: List[int],
elif not isinstance(karabo_da, list):
raise TypeError("Balance sequences expects `karabo_da` as a string or list.")
# data-mapping for LPD mini and GH2 25um uses karabo-da names like
# LPDMINI00/2 or DA01/2 to identify individual modules. The /2 is not
# part of the file name
karabo_da = [kda.split('/')[0] for kda in karabo_da]
in_path = Path(in_folder, f"r{run:04d}")
# TODO: remove ["-1"] after karabo_da refactor
......
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