We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d76da6a commit efb8faaCopy full SHA for efb8faa
src/py_eddy_tracker/generic.py
@@ -89,8 +89,7 @@ def build_index(groups):
89
first_index[group - i0 + 1 : next_group - i0 + 1] = i + 1
90
last_index = zeros(amplitude, dtype=numba_types.int_)
91
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
+ last_index[-1] = len(groups)
94
return first_index, last_index, i0
95
96
0 commit comments