[Mne_analysis] [merge/add/replace events & save - not?]

Alexandre Gramfort alexandre.gramfort at inria.fr
Wed Aug 1 05:53:19 EDT 2018
Search archives:

        External Email - Use Caution        

hi Virginie,

did you use:

https://martinos.org/mne/dev/generated/mne.io.Raw.html#mne.io.Raw.add_events

?

if you create events and add them with this method it should then be
save to disk
when writing the updated file. If it's not the case we have a bug.

Alex
On Wed, Aug 1, 2018 at 9:57 AM Virginie van Wassenhove
<virginie.van.wassenhove at gmail.com> wrote:
>
>         External Email - Use Caution
>
> Hi everyone,
>
> long story short, why saving a raw/sss file to which I either added or merged events do not actually preserve the new events?  (longer story below)
>
> Thanks,
> Virginie
>
>
> Longer story:
>
> My goal: mark the initial/final few samples of raw data (not just with annotations but with my own new trigger) or replace existing triggers with new ones. This is so I can crop again preprocessed data (sss post-reject post-ICA raw) as I wish, after I concatenated runs to apply ICA.
>
> I tried:
> - using merge/add operations (all going fine detecting the events I want to replace) but some events are systematically missing after I saved the file and reload it;
> - tried to catch missing triggers again and redo the same operations before concatenation but the sss file is still not being saved with the added/replaced events
>
> What am I missing? Do you consider it no desirable to be able to rewrite a preprocessed sss file with new events?
> Thanks.
>
>
> Virginie van Wassenhove
> https://brainthemind.com/
>
>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it is
> addressed. If you believe this e-mail was sent to you in error and the e-mail
> contains patient information, please contact the Partners Compliance HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in error
> but does not contain patient information, please contact the sender and properly
> dispose of the e-mail.



More information about the Mne_analysis mailing list