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

move lits of three gain/run detectors into webservice config yaml

parent bcb4c9e7
No related branches found
No related tags found
1 merge request!956[Webservice] Move list of three gain/run detectors into webservice config yaml
......@@ -73,3 +73,15 @@ dark:
--report-to {reports_folder}/{action}_{proposal}_{runs}_{time_stamp}
--cal-db-interface tcp://max-exfl-cal001:8015#8044
--db-output
three-gain-detectors:
[
"LPD",
"AGIPD",
"JUNGFRAU",
"JF",
"JNGFR",
"JUNGF",
"GH2",
"G2",
"HIREX",
]
......@@ -1287,18 +1287,7 @@ class ActionsServer:
# Notebooks require one or three runs, depending on the
# detector type and operation mode.
triple = any(
det in karabo_id for det in
[
"LPD",
"AGIPD",
"JUNGFRAU",
"JF",
"JNGFR",
"JUNGF",
"GH2",
"G2",
"HIREX"
])
det in karabo_id for det in config['dark']['three-gain-detectors']) # noqa
# This fails silently if the hardcoded strings above are
# ever changed (triple = False) but the underlying notebook
......
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