Skip to content
Snippets Groups Projects
Commit 3bea8afe authored by Bert Palm's avatar Bert Palm 🎇
Browse files

fixed GL-#352 and added test for that

parent 93617e12
No related branches found
No related tags found
6 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!489fixed GL-#352 and added test for that
......@@ -348,7 +348,7 @@ def resample(
kws = dict(
method=method,
freq=freq,
func=flag_func,
agg_func=flag_func,
fill_value=np.nan,
max_invalid_total=maxna_flags,
max_invalid_consec=maxna_group_flags,
......
......@@ -41,7 +41,13 @@ def data():
[
("linear", dict()),
("shift", dict(method="nshift")),
("interpolate", dict(method="spline")),
(
pytest.param(
"interpolate",
dict(method="spline"),
marks=pytest.mark.xfail(reason="BUG, see GL#353"),
)
),
("resample", dict(func=np.nansum, method="nagg")),
],
)
......@@ -50,6 +56,11 @@ def test_wrapper(data, func, kws):
freq = "15T"
flags = initFlagsLike(data)
# GL-#352
# make a History, otherwise nothing important is tested
for c in flags.columns:
flags[:, c] = BAD
import saqc
func = getattr(saqc.funcs, func)
......
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