Skip to content
Snippets Groups Projects
Commit 91c75db7 authored by Bert Palm's avatar Bert Palm 🎇
Browse files

warning for unused to_mask

parent 7d44640b
No related branches found
No related tags found
2 merge requests!193Release 1.4,!188Release 1.4
Pipeline #9422 passed with stages
in 9 minutes and 1 second
......@@ -303,7 +303,12 @@ def _saqcCallFunc(func_dump, data, flagger):
elif masking == 'field':
columns = [field]
else:
raise ValueError(f"masking: {masking}")
raise ValueError(f"wrong use of `register(masking={masking})`")
# warn if the user explicitly pass `to_mask=..` to a function that is
# decorated by `register(masking='none')`, and so `to_mask` is ignored.
if masking == 'none' and to_mask not in (None, []):
logging.warning("`to_mask` is given, but the test ignore masking. Please refer to the documentation: TODO")
to_mask = flagger.BAD if to_mask is None else to_mask
# NOTE:
......
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