open-ephys / open-ephys-matlab-tools

Matlab code for interacting with the Open Ephys GUI
MIT License
11 stars 8 forks source link

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

Open mikewehr opened 1 year ago

mikewehr commented 1 year ago

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 commented 1 year ago

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!