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

[Enhancement] Set complexity dtypes for memory efficiency #412

Merged
merged 3 commits into from
Jun 7, 2021

Conversation

morales-gregorio
Copy link
Collaborator

Hey!

@Kleinjohann and I have made minor changes to the Complexity class to use np.uint16 type values in the complexity arrays, this should be able to represent complexities all the way to 65,535 which not even the largest recording systems can achieve right now.

We also updated the tests to check that this dtype is kept all the way to the single spike train annotations, reducing the memory usage by a factor of 4.

Let us know if we should change somethings

Best,
Aitor&Alex

@coveralls
Copy link
Collaborator

coveralls commented Mar 24, 2021

Coverage Status

Coverage increased (+0.1%) to 88.924% when pulling 570467c on INM-6:enh/synchrofact_dtypes into 165276f on NeuralEnsemble:master.

elephant/statistics.py Outdated Show resolved Hide resolved
@mdenker mdenker added this to the v0.11.0 milestone May 21, 2021
@mdenker mdenker added the enhancement Editing an existing module, improving something label May 21, 2021
@mdenker mdenker merged commit 6479381 into NeuralEnsemble:master Jun 7, 2021
@Moritz-Alexander-Kern Moritz-Alexander-Kern mentioned this pull request Mar 9, 2022
1 task
@Moritz-Alexander-Kern Moritz-Alexander-Kern deleted the enh/synchrofact_dtypes branch April 4, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Editing an existing module, improving something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants