Skip to content

Commit

Permalink
run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Apr 2, 2024
1 parent 8b6d5f0 commit 8a87038
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ioos_qc/qartod.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,12 @@ def check(self, tinp, inp, zinp):
fail_idx = np.zeros(inp.size, dtype=bool)

suspect_idx = (inp < m.vspan.minv) | (inp > m.vspan.maxv)

with np.errstate(invalid='ignore'):
flag_arr[(values_idx & fail_idx)] = QartodFlags.FAIL
flag_arr[(values_idx & ~fail_idx & suspect_idx)] = QartodFlags.SUSPECT
flag_arr[(values_idx & ~fail_idx & ~suspect_idx)] = QartodFlags.GOOD

# If the value is masked set the flag to MISSING
flag_arr[inp.mask] = QartodFlags.MISSING

Expand Down
2 changes: 1 addition & 1 deletion tests/test_qartod.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ def test_climatology_test_depths(self):
]
expected_result = [1, 1, 1, 3, 3, 3]
self._run_test(test_inputs, expected_result)


class QartodSpikeTest(unittest.TestCase):

Expand Down

0 comments on commit 8a87038

Please sign in to comment.