[Mne_analysis] epochs should throw an error if labels doesn't exist
Dan Howarth
d.c.howarth at gmail.com
Tue Apr 10 16:38:20 EDT 2018
Let's say you have an epochs object which you believe has labels 'foo' and
'bar', but really 'bar' doesn't exist as a label in the object.
epochs['bar'].average() throws an error, which seems reasonable
epochs[['foo', 'bar']].average() does not throw an error and might be
responsible for creating a whole field of brain science based on false
results ;)
This is 0.13.1
-Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180410/1031bcb0/attachment.html
More information about the Mne_analysis
mailing list