-
Notifications
You must be signed in to change notification settings - Fork 225
Fix bug in waveform generation + adapt parameters #4167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug in waveform generation + adapt parameters #4167
Conversation
…keinterface into generation_ajust_params
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…keinterface into generation_ajust_params
|
@yger @alejoe91 @chrishalcrow : this is ready to merge on my side. |
| # 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] |
There was a problem hiding this comment.
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?
|
IGNORE ME
|
|
Tests are passing. I merge this now. |
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.randnp.random.randnnp.rand.choiceand use explicit randome generator with clear seed.