Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
correction pull request
  • Loading branch information
CoriPegliasco committed May 26, 2021
commit 918fbf2529e2aa87e6d68fce95745b4add3e6a42
2 changes: 1 addition & 1 deletion src/py_eddy_tracker/observations/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,7 @@ def contains(self, x, y, intern=False):
m = ~(isnan(x) + isnan(y))
i = -ones(x.shape, dtype="i4")

if x.size != 0 and True in m:
if x.size != 0 and m.any():
i[m] = poly_indexs(x[m], y[m], self[xname], self[yname])
return i

Expand Down