Skip to content

Commit efb8faa

Browse files
committed
Solve issue AntSimi#88
1 parent d76da6a commit efb8faa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/py_eddy_tracker/generic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ def build_index(groups):
8989
first_index[group - i0 + 1 : next_group - i0 + 1] = i + 1
9090
last_index = zeros(amplitude, dtype=numba_types.int_)
9191
last_index[:-1] = first_index[1:]
92-
# + 2 because we iterate only until -2 and we want upper bound ( 1 + 1)
93-
last_index[-1] = i + 2
92+
last_index[-1] = len(groups)
9493
return first_index, last_index, i0
9594

9695

0 commit comments

Comments
 (0)