From 04f4b7bd5cbccc76a9bf6f92499903e95c963ee9 Mon Sep 17 00:00:00 2001 From: Kyle Wilcox Date: Mon, 12 Jul 2021 12:19:18 -0400 Subject: [PATCH] Pre-commit cleanup after manual merge --- ioos_qc/qartod.py | 6 ++++-- tests/test_qartod.py | 3 --- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ioos_qc/qartod.py b/ioos_qc/qartod.py index b666dc9..7142ad8 100644 --- a/ioos_qc/qartod.py +++ b/ioos_qc/qartod.py @@ -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') diff --git a/tests/test_qartod.py b/tests/test_qartod.py index 5fd9150..1d4fb2e 100644 --- a/tests/test_qartod.py +++ b/tests/test_qartod.py @@ -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. @@ -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 @@ -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]