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.
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.
File "/Users/Peng/Library/Python/2.7/lib/python/site-packages/mne-0.12.dev0-py2.7.egg/mne/cov.py", line 1181, in write_cov
cov.save(fname)
AttributeError: 'str' object has no attribute 'save'
Do you have any idea how should this work?
Thank you very much!
Sincerely,
Peng
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu Mne_analysis Info Page
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 MyComplianceReport.com: Compliance and Ethics Reporting . 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 Mne_analysis Info Page
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 MyComplianceReport.com: Compliance and Ethics Reporting . 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.