Skip to content

Commit 918fbf2

Browse files
committed
correction pull request
1 parent 3d705be commit 918fbf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/py_eddy_tracker/observations/observation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,7 @@ def contains(self, x, y, intern=False):
20572057
m = ~(isnan(x) + isnan(y))
20582058
i = -ones(x.shape, dtype="i4")
20592059

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

0 commit comments

Comments
 (0)