Skip to content

Commit

Permalink
Pulling min and max values from ignore_range keyword instead of expec…
Browse files Browse the repository at this point in the history
…ting an order.
  • Loading branch information
kenkehoe committed Sep 25, 2024
1 parent 0668d94 commit babcdc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion act/qc/qctests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ def add_persistence_test(
index = stddev <= test_limit

if ignore_range is not None:
ignore_index = (data >= ignore_range[0]) & (data <= ignore_range[1])
ignore_index = (data >= min(ignore_range)) & (data <= max(ignore_range))
index = index & ~ignore_index

result = self._ds.qcfilter.add_test(
Expand Down
2 changes: 1 addition & 1 deletion tests/qc/test_qctests.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def test_qctests_dos():
window=20,
min_periods=20,
test_limit=0.01,
ignore_range=[13.1, 14.8],
ignore_range=[14.8, 13.1],
test_assessment='Suspect',
)

Expand Down

0 comments on commit babcdc8

Please sign in to comment.