[Mne_analysis] epochs should throw an error if labels doesn't exist

Alexandre Gramfort alexandre.gramfort at inria.fr
Wed Apr 11 08:22:12 EDT 2018
Search archives:

hi,

I create the issue

https://github.com/mne-tools/mne-python/issues/5117

thanks for the bug report.

Alex


On Tue, Apr 10, 2018 at 10:38 PM, Dan Howarth <d.c.howarth at gmail.com> wrote:
> 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
>
> _______________________________________________
> 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