Memory error reading raw files

External Email - Use Caution

Hi!
I'd like to preload raw-fif files (~40 min recording, sample rate 5000 Hz,
10.2 GB) but it seems I'm running out of memory (RAM 16GB, 2x8 GB). Do I
simply need more memory or is there any other way to tweak the loading of
the raw files?

Best,
Karin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20181216/25aa1a66/attachment.html

External Email - Use Caution

hi Karin,

loading the file in memory will double the size as we do computations
in double precision.

I would see if you can use preload=False on read. The only thing that
can be problematic
is filtering which requires preload=True. In this case, I would
process data by chunks. You can
use the raw.crop method for this.

HTH
Alex

External Email - Use Caution

Or you can use memmapping by passing a filename string to `preload`, which
will be used for temporary storage.

Eric

External Email - Use Caution

Ok thanks!