Skip to content

ENH: Add preload=str to concatenate_raw and concatenate_epochs #6380

Closed

Description

@melyndaschreiber

Hello all, I am using mne.concatenate_raws to collect all my raw data for a single subject. This often caps out my memory on my computer. Is there a way to better manage memory in this situation. Another potential solution is to concatenate epochs which is much better for memory. However, I am concerned that filtering short epochs would cause other issues in my data.

@larsoner has suggested the following:
can you open an issue about concatenate_raws supporting preload as a string?
basically it would allow using a memmap'ed file
in the meantime you can filter each raw instance and save it to disk
and load each of those filtered ones with preload=False (don't load into memory)
then do concatenate_raws on those
then do mne.Epochs on the concatenated instance
the epochs will pull data from the concatenated instance, which will pull them from disk instead of memory

Activity

  1. self-assigned this
    on Jun 4, 2019
  2. added this to the 0.19 milestone on Jun 4, 2019
  3. modified the milestones: 0.19, 0.20 on Sep 11, 2019
  4. changed the title [-]Add Preload String to Concatenate Raws[/-] [+]ENH: Add preload=str to concatenate_raw and concatenate_epochs[/+] on Sep 12, 2019
  5. modified the milestones: 0.20, 0.21 on Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions