Skip to content

Commit

Permalink
Update src/spikeinterface/core/base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin authored Dec 6, 2023
1 parent 97e0ae2 commit bc43334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def ids_to_indices(self, ids: list[str, int], prefer_slice: bool = False) -> Uni
Convert a list of IDs into indices, either as an array or a slice.
This function is designed to transform a list of IDs (such as channel or unit IDs) into an array of indices.
These indices are useful for data manipulation and accessing properties. When `prefer_slice` is set to `True`,
These indices are useful for interacting with data and accessing properties. When `prefer_slice` is set to `True`,
the function tries to return a slice object if the indices are consecutive, which can be more efficient
(e.g. with hdf5 files and to avoid copying data in numpy).
Expand Down

0 comments on commit bc43334

Please sign in to comment.