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

removed useless test and its dir

parent 40cfc53f
No related branches found
No related tags found
1 merge request!462More tests
Pipeline #94446 passed with stage
in 2 minutes and 11 seconds
#!/usr/bin/env python
# SPDX-FileCopyrightText: 2021 Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
#
# SPDX-License-Identifier: GPL-3.0-or-later
#!/usr/bin/env python
# SPDX-FileCopyrightText: 2021 Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
#
# SPDX-License-Identifier: GPL-3.0-or-later
import pytest
from tests.common import initData
from saqc import SaQC
import pandas as pd
import numpy as np
# this tests seems to do nothing with duplicates
@pytest.mark.parametrize("data", [initData(1)])
def test_duplicatedVariable(data):
var1 = data.columns[0]
pflags = SaQC(data).flagDummy(var1).result.flags
if isinstance(pflags.columns, pd.MultiIndex):
cols = pflags.columns.get_level_values(0).drop_duplicates()
assert np.all(cols == [var1])
else:
assert (pflags.columns == [var1]).all()
......@@ -27,8 +27,8 @@ def field(data):
return data.columns[0]
@pytest.mark.parametrize('plot', [True,False])
@pytest.mark.parametrize('normalize', [True,False])
@pytest.mark.parametrize("plot", [True, False])
@pytest.mark.parametrize("normalize", [True, False])
def test_flagPattern_dtw(plot, normalize):
data = pd.Series(0, index=pd.date_range(start="2000", end="2001", freq="1d"))
data.iloc[10:18] = [0, 5, 6, 7, 6, 8, 5, 0]
......@@ -49,5 +49,3 @@ def test_flagPattern_dtw(plot, normalize):
assert all(flags["data"].iloc[10:18] == BAD)
assert all(flags["data"].iloc[:9] == UNFLAGGED)
assert all(flags["data"].iloc[18:] == UNFLAGGED)
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