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

Session is slow, is there a way to save it? #12

Open
mikewehr opened this issue Sep 5, 2023 · 1 comment
Open

Session is slow, is there a way to save it? #12

mikewehr opened this issue Sep 5, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mikewehr
Copy link

mikewehr commented Sep 5, 2023

Calling Session is slow (3 minutes with our recordings), and when I tried to save the object for fast future use, matlab saves the whole 8GB recording session with raw data. Has anyone figured out a handy way to save the light stuff like info and events without saving the raw data?

@medengineer
Copy link
Member

This is a good point and important feature to add.

Currently, the simplest way would be to load the Session object and manually delete any continuous data fields prior to saving a copy of the Session.

Alternatively, if you are using the source code, you could comment out the self = self.loadContinuous() line in the corresponding recording format file (e.g. line 40 in BinaryRecording.m) to prevent continuous data from loading when calling Session.

In the next update, I will add parameters to Session to explicitly specify what gets loaded/saved.

Thanks for the feedback!

@medengineer medengineer self-assigned this Sep 6, 2023
@medengineer medengineer added the enhancement New feature or request label Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants