diff --git a/src/spikeinterface/core/baserecordingsnippets.py b/src/spikeinterface/core/baserecordingsnippets.py index 7214bc5d19..f5d4c8e593 100644 --- a/src/spikeinterface/core/baserecordingsnippets.py +++ b/src/spikeinterface/core/baserecordingsnippets.py @@ -361,7 +361,7 @@ def get_channel_locations(self, channel_ids=None, axes: str = "xy"): sorted_probe_idx = np.argsort(probes_channel_indices) sorted_positions_idx = np.searchsorted(probes_channel_indices[sorted_probe_idx], channel_indices) - + positions = all_positions[sorted_probe_idx[sorted_positions_idx]] return select_axes(positions, axes) else: