From 87a9dc964d59530267ed5be8b297a08b35427b75 Mon Sep 17 00:00:00 2001 From: Samuel Garcia Date: Wed, 4 Oct 2023 15:36:07 +0200 Subject: [PATCH] yep --- src/spikeinterface/core/generate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spikeinterface/core/generate.py b/src/spikeinterface/core/generate.py index 06a5ec96ec..9d656db977 100644 --- a/src/spikeinterface/core/generate.py +++ b/src/spikeinterface/core/generate.py @@ -1405,6 +1405,7 @@ def generate_ground_truth_recording( assert sorting.sampling_frequency == sampling_frequency num_spikes = sorting.to_spike_vector().size + if probe is None: probe = generate_linear_probe(num_elec=num_channels) probe.set_device_channel_indices(np.arange(num_channels))