Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rdm-software
SaQC
Commits
668a84d8
Commit
668a84d8
authored
5 years ago
by
David Schaefer
Browse files
Options
Downloads
Patches
Plain Diff
updated comment to flagGeneric
parent
ac4caf34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!14
WIP: Expose the function parameter 'field' to the config
Pipeline
#2471
passed with stage
in 6 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
saqc/funcs/functions.py
+2
-5
2 additions, 5 deletions
saqc/funcs/functions.py
with
2 additions
and
5 deletions
saqc/funcs/functions.py
+
2
−
5
View file @
668a84d8
...
...
@@ -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
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment