From dcf2116ac01bc3d37f77ba9894ab741ef2d628dd Mon Sep 17 00:00:00 2001 From: Heberto Mayorquin Date: Mon, 20 Nov 2023 14:39:26 +0100 Subject: [PATCH] Aurelien feedback --- src/spikeinterface/core/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spikeinterface/core/generate.py b/src/spikeinterface/core/generate.py index 79274fb08a..6a96bbdf7d 100644 --- a/src/spikeinterface/core/generate.py +++ b/src/spikeinterface/core/generate.py @@ -379,7 +379,7 @@ def synthesize_poisson_spike_vector( max_p = geometric_p.max() num_spikes_expected = ceil(max_frames * max_p) num_spikes_std = int(np.sqrt(num_spikes_expected * (1 - max_p))) - num_spikes_max = num_spikes_expected + 2 * num_spikes_std + num_spikes_max = num_spikes_expected + 4 * num_spikes_std # Generate inter spike frames, add the refactory samples and accumulate for sorted spike frames inter_spike_frames = rng.geometric(p=geometric_p[:, np.newaxis], size=(num_units, num_spikes_max))