Skip to content
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 efel units #76

Merged
merged 7 commits into from
Oct 17, 2023
Merged

Fix efel units #76

merged 7 commits into from
Oct 17, 2023

Conversation

mstimberg
Copy link
Member

The calc_eFEL function divided the trace by mV, but they were already provided as numpy arrays, not as Brian quantities. This meant that instead of removing units, the division added units of 1/volt, making all later indexing into the array more costly. Note that this only affected the performance, not the results.

This PR also refactors things a bit as a first step to fixing #57.

mstimberg and others added 7 commits October 9, 2023 16:15
Instead of providing a unitless-array to eFEL, we provided a `Quantity` in units 1/volt
This did not affect the results (since the scale was correct), but slowed down everything
This could potentially speed up things greatly by requiring fewer initialization calls, but unfortunately eFEL initializes everything for every trace
@mstimberg mstimberg merged commit 6aab6f9 into master Oct 17, 2023
8 checks passed
@mstimberg mstimberg deleted the fix_efel_units branch October 17, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant