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

Load templates as memmap rather than in memory #167

Merged
merged 8 commits into from
Apr 6, 2024

Conversation

DradeAW
Copy link
Contributor

@DradeAW DradeAW commented Feb 14, 2024

When generating very big dataset, it's very easy to have templates bigger than 60 GiB

This PR makes the templates be loaded as memmaps rather than in memory .

@DradeAW
Copy link
Contributor Author

DradeAW commented Feb 14, 2024

Ok I can confirm that generating the templates now works while using a lot less RAM

Tomorrow I'll check whether there is a conversion to memory while generating the recording

@DradeAW DradeAW marked this pull request as ready for review February 20, 2024 08:47
@DradeAW
Copy link
Contributor Author

DradeAW commented Feb 20, 2024

I need to test this last commit,
@alejoe91 Do you think they're good or should I also change something else?

@alejoe91
Copy link
Member

Looks good to me! Let me know when I should merge

src/MEArec/tools.py Outdated Show resolved Hide resolved
@alejoe91 alejoe91 merged commit 57483d7 into SpikeInterface:main Apr 6, 2024
1 check failed
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.

2 participants