Skip to content
Snippets Groups Projects
Commit 0104611d authored by David Schäfer's avatar David Schäfer
Browse files

Merge branch 'varfixes' into 'develop'

Various fixes from CHS Pipeline

See merge request !483
parents 679e887c 5f958b4e
No related branches found
No related tags found
6 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!483Various fixes from CHS Pipeline
Pipeline #96770 passed with stages
in 3 minutes and 44 seconds
......@@ -109,4 +109,6 @@ ENVIRONMENT = {
"BAD": BAD,
"UNFLAGGED": UNFLAGGED,
"DOUBTFUL": DOUBTFUL,
"FILTER_ALL": FILTER_ALL,
"FILTER_NONE": FILTER_NONE,
}
......@@ -97,7 +97,10 @@ def fromConfig(fname, *args, **func_kwargs):
func_kwargs["field" if "field" not in func_kwargs else "target"] = fld
try:
saqc = getattr(saqc, func_name)(regex=regex, **func_kwargs)
# We explictly route all function calls through SaQC.__getattr__
# in order to do a FUNC_MAP lookup. Otherwise we wouldn't be able
# to overwrite exsiting test functions with custom register calls.
saqc = saqc.__getattr__(func_name)(regex=regex, **func_kwargs)
except Exception as e:
raise type(e)(f"failed to execute: {field} ; {expr}") from e
......
......@@ -27,6 +27,7 @@ class PositionalScheme(TranslationScheme):
-6: UNFLAGGED,
-5: UNFLAGGED,
-2: UNFLAGGED,
-1: UNFLAGGED,
0: UNFLAGGED,
1: DOUBTFUL,
2: BAD,
......
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