Skip to content
Snippets Groups Projects
Commit 3b1a4a16 authored by Karim Ahmed's avatar Karim Ahmed Committed by Philipp Schmidt
Browse files

log a warning for a legacy condition

parent e036c20f
No related branches found
No related tags found
1 merge request!993[Webservice] Enable two runs detectors
......@@ -405,6 +405,10 @@ def decide_run_parameters(runs, expected_number_of_runs):
"""
if expected_number_of_runs == 3 and len(runs) == 1:
# log a warning to check if this legacy condition have ever been used.
logging.warning(
"A detector with 3 run numbers operation mode,"
f" but one dark run is requested. runs: {runs}")
return {'run-high': runs[0], 'run-med': '0', 'run-low': '0'}
elif expected_number_of_runs == 3 and len(runs) == 3:
return {'run-high': runs[0], 'run-med': runs[1], 'run-low': runs[2]}
......
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