[Mne_analysis] Overwriting data in noise covariance matrix

Gladia Hotan gladiach at gmail.com
Sun Feb 4 04:48:57 EST 2018
Search archives:

Hi Eric and Alex,

cov['data'] = newcov worked; thank you!

cov._[:] = newcov returned an error: 'Covariance' object has no attribute
'data'.

Thanks!

Best,
Gladia

On Sun, Feb 4, 2018 at 1:38 AM, Eric Larson <larson.eric.d at gmail.com> wrote:

> I think that the covariance data is stored in the cov['data'] entry (as
> Covariance subclasses the native dict object) as either a 2d array (most
> common) or 1d array for diagonal type (uncommon).
>
> Eric
>
>
> On Feb 3, 2018 12:35 PM, "Alexandre Gramfort" <alexandre.gramfort at inria.fr>
> wrote:
>
> can you share some code?
>
> cov._data[:] = newcov
>
> should work provided it has the correct shape.
>
> Alex
> _______________________________________________
> 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.
>
>
>
> _______________________________________________
> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180204/e3d03296/attachment-0001.html 


More information about the Mne_analysis mailing list