[Mne_analysis] Saving output of convert_forward_solution?
Sheraz Khan, PhD
sheraz at nmr.mgh.harvard.edu
Wed Oct 10 18:49:09 EDT 2018
Hi Gladia,
If the ultimate goal is to use the inverse operator in Matlab, please look
at the following gist
https://gist.github.com/SherazKhan/1104f67ba79b188088f6021b1dbc130e
Use pickNormal to set loose or fixed orientation in the inverse operator
Thanks
Sheraz
> External Email - Use Caution
>
> Hi Joshua,
>
> Thanks for your reply! If I try to save a converted forward solution using
> write_forward_solution, write_forward_solution saves the original forward
> (before conversion), and issues a warning that I should reapply the
> conversion after loading the saved forward model. I'm trying to use the
> converted forward solution with MNE Matlab, which as far as I know doesn't
> have a convert_forward_solution function, so I need to save the converted
> forward solution in Python then load it in Matlab. I don't think
> write_forward_solution works for my application, unless it has saving
> options that I don't know about?
>
> Best,
> Gladia
>
> On Wed, Oct 10, 2018 at 3:30 PM Bear, Joshua <JOSHUA.BEAR at ucdenver.edu>
> wrote:
>
>> Hi Gladia,
>>
>> You should be able to do this by using the mne module rather than trying
>> to call it from the forward solution object.
>>
>> mne.write_forward_solution(fname, fwd) # fname should be the filename
>> of
>> your choice, fwd is the output from convert_forward_solution
>>
>> See:
>> https://martinos.org/mne/dev/generated/mne.write_forward_solution.html
>>
>>
>> Cheers,
>> Josh
>>
>>
>>
>> Joshua Bear, MD, MA | Assistant Professor, Pediatric Neurology and
>> Epilepsy
>> University of Colorado and Childrenâs Hospital Colorado
>> 13123 East 16th Avenue, Box B-155 | Aurora, CO 80045 | Phone:
>> 720-777-6138
>> | Fax: 720-777-7285
>>
>>
>>
>> On Oct 10, 2018, at 12:57 PM, Gladia Hotan <gladiach at gmail.com> wrote:
>>
>> External Email - Use Caution
>>
>> Hi,
>>
>> Is there any way to save a converted forward solution obtained from
>> mne.convert_forward_solution?
>>
>> Thanks and Best Regards,
>> Gladia
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>
>>
>> External Email - Use Caution
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
-------------------------
Sheraz Khan, M.Eng, Ph.D.
Instructor in Radiology
Athinoula A. Martinos Center for Biomedical Imaging
Massachusetts General Hospital
Harvard Medical School
McGovern Institute for Brain Research
Massachusetts Institute of Technology
Tel: +1 617-643-5634
Fax: +1 617-948-5966
Email: sheraz at nmr.mgh.harvard.edu
sheraz at mit.edu
Web: http://sheraz.mit.edu
More information about the Mne_analysis
mailing list