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

all blacked out

parent bbc772af
No related branches found
No related tags found
1 merge request!256Filter funcs
Pipeline #22950 passed with stage
in 1 minute and 55 seconds
......@@ -34,15 +34,17 @@ def field(data):
def test_statPass():
data = pd.Series(0, index=pd.date_range('2000','2001',freq='1D'), name='data')
data = pd.Series(0, index=pd.date_range("2000", "2001", freq="1D"), name="data")
noise = [-1, 1] * 10
data[100:120] = noise
data[200:210] = noise[:10]
data = dios.DictOfSeries(data)
flags = initFlagsLike(data)
data, flags = flagByStatLowPass(data, 'data', flags, np.std, '20D', 0.999, '5D', 0.999, 0, flag=BAD)
assert (flags['data'] == BAD).sum() == 21
assert (flags['data'][200:210] < BAD).all()
data, flags = flagByStatLowPass(
data, "data", flags, np.std, "20D", 0.999, "5D", 0.999, 0, flag=BAD
)
assert (flags["data"] == BAD).sum() == 21
assert (flags["data"][200:210] < BAD).all()
def test_flagRange(data, field):
......
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