Skip to content

Commit

Permalink
Aurelien feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Nov 20, 2023
1 parent ac41b95 commit dcf2116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit dcf2116

Please sign in to comment.