[Mne_analysis] mne.write_cov error
teon.brooks at gmail.com
Thu Apr 28 18:23:02 EDT 2016
Do you have a traceback of why it failed with mne.write_cov? Did you try
Cov.save with your covariance matrix object?
Could you try those and see if that works?
On Thu, Apr 28, 2016 at 17:17 Peng Zan <zanpeng.pz at gmail.com> wrote:
> Dear mne expert,
> I wanted to write a covariance matrix into a *-cov.fif file using python
> command 'mne.write_cov' but failed. I saved the covariance matrix into a
> txt file 'R2262.txt' and then read it via python to cov_matrix. The error
> occurred in the step of 'write_cov'. In tutorial, only file name and the
> matrix are needed. Everything should be correct but it said 'str' had no
> attribute 'save'. The detail is as follows.
> >>> cov =
> cov_matrix = cov.read()
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> line 1181, in write_cov
> AttributeError: 'str' object has no attribute 'save'
> Do you have any idea how should this work?
> Thank you very much!
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> The information in this e-mail is intended only for the person to whom it
> addressed. If you believe this e-mail was sent to you in error and the
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> but does not contain patient information, please contact the sender and
> dispose of the e-mail.
Envoyé de mon iPhone
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mne_analysis