Skip to content
Snippets Groups Projects

Pop internal disable-correct key from data mapping

Merged Philipp Schmidt requested to merge fix/disable-correct-passing into master
All threads resolved!
1 file
+ 7
5
Compare changes
  • Side-by-side
  • Inline
+ 7
5
@@ -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)
Loading