Skip to content

Commit 08d7dc8

Browse files
indexes -> indices (AntSimi#80)
1 parent 93709e4 commit 08d7dc8

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

src/py_eddy_tracker/dataset/grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ def get_step_in_km(self, lat, wave_length):
12751275
min_wave_length = max(step_x_km, step_y_km) * 2
12761276
if wave_length < min_wave_length:
12771277
logger.error(
1278-
"Wave_length too short for resolution, must be > %d km",
1278+
"wave_length too short for resolution, must be > %d km",
12791279
ceil(min_wave_length),
12801280
)
12811281
raise Exception()

src/py_eddy_tracker/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def count_consecutive(mask):
5050
@njit(cache=True)
5151
def reverse_index(index, nb):
5252
"""
53-
Compute a list of indexes, which are not in index.
53+
Compute a list of indices, which are not in index.
5454
5555
:param array index: index of group which will be set to False
5656
:param array nb: Count for each group

src/py_eddy_tracker/observations/network.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def find_segments_relative(self, obs, stopped=None, order=1):
135135
return nw.relatives([i_obs, i_stopped], order=order)
136136

137137
def get_missing_indices(self, dt):
138-
"""Find indexes where observations are missing.
138+
"""Find indices where observations are missing.
139139
140140
As network have all untracked observation in tracknumber `self.NOGROUP`,
141141
we don't compute them
@@ -215,7 +215,7 @@ def longer_than(self, nb_day_min=-1, nb_day_max=-1):
215215
@classmethod
216216
def from_split_network(cls, group_dataset, indexs, **kwargs):
217217
"""
218-
Build a NetworkObservations object with Group dataset and indexes
218+
Build a NetworkObservations object with Group dataset and indices
219219
220220
:param TrackEddiesObservations group_dataset: Group dataset
221221
:param indexs: result from split_network
@@ -346,7 +346,7 @@ def find_link(self, i_observations, forward=True, backward=False):
346346
where water from obs `i_observation` could come from
347347
348348
:param int,iterable(int) i_observation:
349-
indexes of observation. Can be
349+
indices of observation. Can be
350350
int, or iterable of int.
351351
:param bool forward, backward:
352352
if forward, search observations after obs.
@@ -496,7 +496,7 @@ def relatives(self, obs, order=2):
496496
"""
497497
Extract the segments at a certain order from multiple observations.
498498
499-
:param iterable,int obs: indexes of observation for relatives computation.
499+
:param iterable,int obs: indices of observation for relatives computation.
500500
Can be one observation (int) or collection of observations (iterable(int))
501501
:param int order: order of relatives wanted.
502502
0 means only observations in obs, 1 means direct relatives (1 interaction event), ...

src/py_eddy_tracker/observations/observation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def iter_on(self, xname, bins=None):
594594

595595
def align_on(self, other, var_name="time", **kwargs):
596596
"""
597-
Align the time indexes of two datasets.
597+
Align the time indices of two datasets.
598598
599599
.. minigallery:: py_eddy_tracker.EddiesObservations.align_on
600600
"""
@@ -1135,7 +1135,7 @@ def match(
11351135
:param bool intern: if True, speed contour is used (default = effective contour)
11361136
:param float cmin: 0 < cmin < 1, return only couples with score >= cmin
11371137
:param dict kwargs: look at :py:meth:`vertice_overlap`
1138-
:return: return the indexes of the eddies in self coupled with eddies in
1138+
:return: return the indices of the eddies in self coupled with eddies in
11391139
other and their associated score
11401140
:rtype: (array(int), array(int), array(float))
11411141
@@ -1166,7 +1166,7 @@ def re_reference_index(index, ref):
11661166
:param array,int index: local index to re ref
11671167
:param slice,array ref:
11681168
reference could be a slice in this case we juste add start to index
1169-
or could be indexes and in this case we need to translate
1169+
or could be indices and in this case we need to translate
11701170
"""
11711171
if isinstance(ref, slice):
11721172
return index + ref.start

src/py_eddy_tracker/observations/tracking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def iter_track(self):
7777
yield self.index(slice(i0, i0 + nb))
7878

7979
def get_missing_indices(self, dt):
80-
"""Find indexes where observations are missing.
80+
"""Find indices where observations are missing.
8181
8282
:param int,float dt: theorical delta time between 2 observations
8383
"""
@@ -618,7 +618,7 @@ def split_network(self, intern=True, **kwargs):
618618
# Initialisation
619619
# To store the id of the segments, the backward and forward cost associations
620620
ids["track"], ids["previous_cost"], ids["next_cost"] = 0, 0, 0
621-
# To store the indexes of the backward and forward observations associated
621+
# To store the indices of the backward and forward observations associated
622622
ids["previous_obs"], ids["next_obs"] = -1, -1
623623
# At the end, ids["previous_obs"] == -1 means the start of a non-split segment
624624
# and ids["next_obs"] == -1 means the end of a non-merged segment

0 commit comments

Comments
 (0)