Skip to content
Snippets Groups Projects
Commit 668a84d8 authored by David Schaefer's avatar David Schaefer
Browse files

updated comment to flagGeneric

parent ac4caf34
No related branches found
No related tags found
1 merge request!14WIP: Expose the function parameter 'field' to the config
Pipeline #2471 passed with stage
in 6 minutes and 35 seconds
......@@ -12,11 +12,8 @@ from saqc.funcs.register import register
@register("flagGeneric")
def flagGeneric(data, field, flagger, func, func_arguments, **kwargs):
# NOTE:
# - The naming of the func parameter is pretty confusing
# as it actually holds the result of a generic expression
# - if the result series carries a name, it was explicitly created
# from one single columns, so we need to preserve this columns
# properties
# The naming of the func parameter is pretty confusing
# as it actually holds the result of a generic expression
mask = func.squeeze()
if np.isscalar(mask):
raise TypeError(f"generic expression does not return an array")
......
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