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

fixed wrapper-test

parent e02c8d84
No related branches found
No related tags found
3 merge requests!271Static expansion of regular expressions,!260Follow-Up Translations,!237Flagger Translations
...@@ -150,13 +150,19 @@ def test_gridInterpolation(data, method): ...@@ -150,13 +150,19 @@ def test_gridInterpolation(data, method):
interpolate(data, field, flagger, freq, order=10, method=method, downcast_interpolation=True) interpolate(data, field, flagger, freq, order=10, method=method, downcast_interpolation=True)
def test_wrapper(data): @pytest.mark.parametrize('func, kws', [
('linear', dict(to_drop=None)),
('shift', dict(method="nshift", to_drop=None)),
('interpolate', dict(method="spline")),
('aggregate', dict(value_func=np.nansum, method="nagg", to_drop=None)),
])
def test_wrapper(data, func, kws):
# we are only testing, whether the wrappers do pass processing: # we are only testing, whether the wrappers do pass processing:
field = 'data' field = 'data'
freq = "15min" freq = "15min"
flagger = initFlagsLike(data) flagger = initFlagsLike(data)
linear(data, field, flagger, freq, to_drop=None) import saqc
aggregate(data, field, flagger, freq, value_func=np.nansum, method="nagg", to_drop=None) func = getattr(saqc.funcs, func)
shift(data, field, flagger, freq, method="nshift", to_drop=None) func(data, field, flagger, freq, **kws)
interpolate(data, field, flagger, freq, method="spline")
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