[Mne_analysis] Epochs.save()
Alan
leggitta3 at gmail.com
Tue May 20 14:52:59 EDT 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20140520/78823905/attachment.html
More information about the Mne_analysis
mailing list