Skip to content

Commit

Permalink
fix motion
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Dec 17, 2024
1 parent d94ccf1 commit 7f461db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/spikeinterface/sortingcomponents/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ def make_dataset():
noise_kwargs=dict(noise_levels=5.0, strategy="on_the_fly"),
seed=2205,
)

channel_ids_as_integers = [id for id in range(recording.get_num_channels())]
unit_ids_as_integers = [id for id in range(sorting.get_num_units())]
recording = recording.rename_channels(new_channel_ids=channel_ids_as_integers)
sorting = sorting.rename_units(new_unit_ids=unit_ids_as_integers)

return recording, sorting

0 comments on commit 7f461db

Please sign in to comment.