Skip to content

Commit

Permalink
port change from #35
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Mar 15, 2024
1 parent daba0ee commit 435553c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ioos_qc/qartod.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,9 @@ def check(self, tinp, inp, zinp):
with np.errstate(invalid='ignore'):
z_idx = (~zinp.mask) & (zinp >= m.zspan.minv) & (zinp <= m.zspan.maxv)
else:
# Only test the values with masked Z, ie values with no Z
z_idx = zinp.mask
# If there is no z data in the config, don't try to filter by depth!
# Set z_idx to all True to prevent filtering
z_idx = np.ones(inp.size, dtype=bool)

# Combine the T and Z indexes
values_idx = (t_idx & z_idx)
Expand Down

0 comments on commit 435553c

Please sign in to comment.