From 96addeb316e43ac1442b8b856462ee28d2b0f5f2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:51:28 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/spikeinterface/core/baserecordingsnippets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: