Skip to content

Commit

Permalink
Pre-commit cleanup after manual merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kwilcox committed Jul 12, 2021
1 parent fb3329d commit 04f4b7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions ioos_qc/qartod.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,10 @@ def spike_test(inp: Sequence[N],
with np.errstate(invalid='ignore'):
diff[1:-1][ref[:-1]*ref[1:] >= 0] = 0
else:
raise ValueError('Unknown method: "{0}", only "average" and "differential" methods are available'\
.format(method))
raise ValueError(
'Unknown method: "{0}", only "average" and "differential" methods are available'
.format(method)
)

# Start with everything as passing (1)
flag_arr = np.ma.ones(inp.size, dtype='uint8')
Expand Down
3 changes: 0 additions & 3 deletions tests/test_qartod.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,6 @@ def test_spike_realdata(self):
expected
)


def test_spike_methods(self):
"""
Test the different input methods and review the different flags expected.
Expand Down Expand Up @@ -1031,7 +1030,6 @@ def test_spike_methods(self):
average_method_expected
)


def test_spike_test_bad_method(self):
inp = [3, 4.99, 5, 6, 8, 6, 6, 6.75, 6, 6, 5.3, 6, 6, 9, 5, None, 4, 4]
suspect_threshold = .5
Expand All @@ -1052,7 +1050,6 @@ def test_spike_test_bad_method(self):
method=123
)


def test_spike_test_inputs(self):
inp = [3, 4.99, 5, 6, 8, 6, 6, 6.75, 6, 6, 5.3, 6, 6, 9, 5, None, 4, 4]
expected_suspect_only = [2, 3, 1, 1, 3, 3, 1, 3, 1, 1, 3, 1, 3, 3, 3, 9, 9, 2]
Expand Down

0 comments on commit 04f4b7b

Please sign in to comment.