Skip to content
Snippets Groups Projects
Commit f4623fa3 authored by Philipp Schmidt's avatar Philipp Schmidt
Browse files

Log any detector skipped for corrections due to config

parent 4c75db50
No related branches found
No related tags found
1 merge request!629Pop internal disable-correct key from data mapping
This commit is part of merge request !629. Comments created here will be created in the context of that merge request.
......@@ -910,11 +910,6 @@ class ActionsServer:
for karabo_id in pconf:
dconfig = data_conf[karabo_id]
if dconfig.pop('disable-correct', False):
# Skip this detector installation for
# corrections if disabled.
continue
# check for files according to mapping in raw run dir.
if any(y in x for x in fl
for y in dconfig['karabo-da']):
......@@ -934,6 +929,13 @@ class ActionsServer:
Errors.REQUEST_FAILED)
return
for karabo_id in list(detectors.keys()):
# Check for any detectors for which corrections are
# disabled manually.
if detectors[karabo_id].pop('disable-correct', False):
logging.warning(f'Skipping disabled detector {karabo_id}')
del detectors[karabo_id]
if len(detectors) == 0:
msg = Errors.NOTHING_TO_DO.format(rpath)
logging.warning(msg)
......
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