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

fix warning and docstring

parent 386e6861
Branches feat/reorder_dark_runs_jf
No related tags found
1 merge request!900[Jungfrau][DARK] Validate and reorder dark runs before processing
......@@ -153,7 +153,7 @@ def sort_runs_by_gain(
Args:
raw_folder (str): RAW folder for the validated dark runs.
runs (list, optional): [High run, Medium run, Low run].
runs (list): [High run, Medium run, Low run].
ctrl_src (str): Control source path for slow data.
modes_order (dict): Gain modes order to sort the runs by.
expected_run_order (list):Expected dark runs order to process.
......@@ -200,7 +200,8 @@ def sort_runs_by_gain(
if modes == legacy_adaptive:
warning(f"run.settings for medium and low gain runs"
f" are wrong {modes[1:]}. This is an expected "
f"bug for old raw data. Setting gain_mode to {gm}.")
f"bug for old raw data. "
"Assuming this is an adaptive gain runs.")
elif not modes in expected_run_order:
raise ValueError("Wrong dark runs are given. "
f"The given three runs are {runs} with "
......
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