Skip to content
Snippets Groups Projects
Commit 5c6bdfcf authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

smll bfx

parent e374f113
No related branches found
No related tags found
2 merge requests!193Release 1.4,!188Release 1.4
......@@ -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()
......
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