Skip to content

Commit

Permalink
_reduceat fix
Browse files Browse the repository at this point in the history
Large ineq instead of strict
  • Loading branch information
eliegoudout authored Nov 25, 2023
1 parent 0e9949f commit 5d14402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skfda/representation/irregular.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _reduceat(### FINISH DOC + TYPE HINTS
extended_array = np.pad(array, pad_width, mode="empty")
extended_indices = np.append(indices, n)

bad = (indices < 0) | (indices > n)
bad = (indices < 0) | (indices >= n)
empty = (np.diff(extended_indices) <= 0) | bad
extended_indices[:-1][bad] = n

Expand Down

0 comments on commit 5d14402

Please sign in to comment.