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
5c6bdfcf
Commit
5c6bdfcf
authored
4 years ago
by
Peter Lünenschloß
Browse files
Options
Downloads
Patches
Plain Diff
smll bfx
parent
e374f113
No related branches found
No related tags found
2 merge requests
!193
Release 1.4
,
!188
Release 1.4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
saqc/funcs/proc_functions.py
+3
-4
3 additions, 4 deletions
saqc/funcs/proc_functions.py
with
3 additions
and
4 deletions
saqc/funcs/proc_functions.py
+
3
−
4
View file @
5c6bdfcf
...
...
@@ -156,7 +156,7 @@ def proc_interpolateGrid(data, field, flagger, freq, method, inter_order=2, drop
samples at the interpolated, equidistant timestamps (of frequency
"
freq
"
).
Parameters
---------
.copy()
---------
freq : Offset String
The frequency of the grid you want to interpolate your data at.
...
...
@@ -184,8 +184,6 @@ def proc_interpolateGrid(data, field, flagger, freq, method, inter_order=2, drop
"""
datcol
=
data
[
field
]
if
datcol
.
empty
:
return
data
,
flagger
datcol
=
datcol
.
copy
()
flagscol
=
flagger
.
getFlags
(
field
)
if
empty_intervals_flag
is
None
:
...
...
@@ -196,7 +194,8 @@ def proc_interpolateGrid(data, field, flagger, freq, method, inter_order=2, drop
drop_mask
|=
datcol
.
isna
()
datcol
[
drop_mask
]
=
np
.
nan
datcol
.
dropna
(
inplace
=
True
)
if
datcol
.
empty
:
return
data
,
flagger
# account for annoying case of subsequent frequency aligned values, differing exactly by the margin
# 2*freq:
spec_case_mask
=
datcol
.
index
.
to_series
()
...
...
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