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
e5a4b0c9
Commit
e5a4b0c9
authored
4 years ago
by
Peter Lünenschloß
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
153218c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!193
Release 1.4
,
!188
Release 1.4
,
!49
Dataprocessing features
,
!44
Dataprocessing features
Pipeline
#3584
passed with stage
in 9 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
saqc/funcs/proc_functions.py
+9
-0
9 additions, 0 deletions
saqc/funcs/proc_functions.py
with
9 additions
and
0 deletions
saqc/funcs/proc_functions.py
+
9
−
0
View file @
e5a4b0c9
...
...
@@ -7,6 +7,7 @@ from saqc.funcs.register import register
from
saqc.lib.ts_operators
import
interpolateNANs
,
validationTrafo
from
saqc.lib.tools
import
composeFunction
@register
()
def
proc_interpolateMissing
(
data
,
field
,
flagger
,
method
,
inter_order
=
2
,
inter_limit
=
2
,
interpol_flag
=
'
UNFLAGGED
'
,
downgrade_interpolation
=
False
,
return_chunk_bounds
=
False
,
**
kwargs
):
...
...
@@ -20,6 +21,7 @@ def proc_interpolateMissing(data, field, flagger, method, inter_order=2, inter_l
flag
=
getattr
(
flagger
,
interpol_flag
),
**
kwargs
)
return
inter_data
,
flagger
@register
()
def
proc_resample
(
data
,
field
,
flagger
,
freq
,
func
=
"
mean
"
,
max_invalid_total
=
None
,
max_invalid_consec
=
None
,
flag_agg_func
=
'
max
'
,
**
kwargs
):
...
...
@@ -61,4 +63,11 @@ def proc_resample(data, field, flagger, freq, func="mean", max_invalid_total=Non
all_flags
[
field
]
=
datflags
flagger
=
flagger
.
initFlags
(
flags
=
all_flags
)
return
data
,
flagger
@register
()
def
proc_transform
(
data
,
field
,
flagger
,
func
,
**
kwargs
):
func
=
composeFunction
(
func
)
data
[
field
]
=
data
[
field
].
transform
(
func
)
return
data
,
flagger
\ No newline at end of file
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