Skip to content

Commit 9a03cbf

Browse files
committed
add a correction for AntSimi#11
1 parent 7543fd9 commit 9a03cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/py_eddy_tracker/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def wrap_longitude(x, y, ref, cut=False):
303303
if not isnan(x_) and not isnan(x_previous):
304304
d_new = new_x - new_previous
305305
d = x_ - x_previous
306-
if d != d_new:
306+
if abs(d - d_new) > 1e-5:
307307
indexs.append(i)
308308
x_previous, new_previous = x_, new_x
309309

0 commit comments

Comments
 (0)