Skip to content

Conversation

@samuelgarcia
Copy link
Member

@samuelgarcia samuelgarcia commented Oct 10, 2025

This fix a bug in how we do the generation the spattial waveform when it is an ellispoid.
It bug had an impact on the waveform amplitude itself.

The new way is a bit more simple but less buggy with no border effect on amplitude.

This also change the parameters range and names to avoid confusion.

Additionally it remove all the np.random.rand np.random.randn np.rand.choice and use explicit randome generator with clear seed.

@alejoe91 alejoe91 added the generators Related to generator tools label Oct 21, 2025
@samuelgarcia
Copy link
Member Author

@yger @alejoe91 @chrishalcrow : this is ready to merge on my side.

@alejoe91 alejoe91 added this to the 0.103.1 milestone Oct 24, 2025
# TODO: Need a better & faster way than this.
min_diff = np.min(np.abs(injected_spike_train[:, None] - spike_train[None, :]), axis=1)
violations = min_diff < t_r
injected_spike_train = injected_spike_train[~violations]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In line 285 (10 lines above!) should np.random.uniform be seeded? Or just a rng?

@chrishalcrow
Copy link
Member

chrishalcrow commented Oct 24, 2025

IGNORE ME

I'm just looking for seeds which might be making the tests flakey. Should line 2169 in generate.py in _generate_multimodal be seed-able?

@samuelgarcia
Copy link
Member Author

Tests are passing. I merge this now.

@samuelgarcia samuelgarcia merged commit 9ec48d7 into SpikeInterface:main Oct 24, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

generators Related to generator tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants