[Mne_analysis] Epochs.save()

Alexandre Gramfort alexandre.gramfort at telecom-paristech.fr
Wed May 21 03:45:59 EDT 2014
Search archives:

hi Alan,

can you open an issue on github, provide a minimal code snippet
to reproduce the bug and given your previous contributions to MNE-Python
maybe even dig into it to get the cause of the problem?

Best,
Alex


On Tue, May 20, 2014 at 8:52 PM, Alan <leggitta3 at gmail.com> wrote:
> Hello,
>
> I’m trying to save epoch data using the epochs.save() method. Everything
> seems to work fine, but when I read the data using mne.read_epochs() and try
> to extract a subset of the events, I get the following error …
>
> In [50]: epo['faces']
> ---------------------------------------------------------------------------
> TypeError                                 Traceback (most recent call last)
> /home/aleggitt/mne-python/examples/datasets/<ipython-input-50-a5cd291b28b0>
> in <module>()
> ----> 1 epo['faces']
>
> /home/aleggitt/.local/lib/python2.7/site-packages/mne/epochs.py in
> __getitem__(self, key)
>    1148             select = key if isinstance(key, slice) else
> np.atleast_1d(key)
>    1149
> -> 1150         key_selection = epochs.selection[select]
>    1151         for k in np.setdiff1d(epochs.selection, key_selection):
>    1152             epochs.drop_log[k] = ['IGNORED']
>
> TypeError: only integer arrays with one element can be converted to an index
>
> In [51]: print epo.event_id
> {u'scrambled': 2, u'faces': 1}
>
> I don’t get this error when I use the data before saving.
>
> Thanks,
> Alan
>
>
> _______________________________________________
> 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