[Mne_analysis] Overwriting data in noise covariance matrix

Eric Larson larson.eric.d at gmail.com
Sat Feb 3 12:38:28 EST 2018
Search archives:

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180203/e81581e2/attachment.html 


More information about the Mne_analysis mailing list