<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto"><p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p>
<div dir="ltr"></div>
<div dir="ltr">Hi Gladia,</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Yes, you’re right ... I hadn’t noticed that. It looks like the write function is checking&nbsp;<span style="caret-color: rgb(36, 41, 46); color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: auto; background-color: rgb(255, 255, 255);">fwd[</span><span class="pl-s" style="box-sizing: border-box; color: rgb(3, 47, 98); font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: auto;"><span class="pl-pds" style="box-sizing: border-box;">'</span>_orig_source_ori<span class="pl-pds" style="box-sizing: border-box;">'</span></span><span style="caret-color: rgb(36, 41, 46); color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: auto; background-color: rgb(255, 255, 255);">]</span>&nbsp;to
 decide about how to write the file. You might be able to hack that value (set it equal to the new source orientation), but I’m not sure that wouldn’t break something else ... you would, at the least, probably also need to overwrite the&nbsp;<span style="caret-color: rgb(36, 41, 46); color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: auto; background-color: rgb(255, 255, 255);">fwd[</span><span class="pl-s" style="box-sizing: border-box; color: rgb(3, 47, 98); font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: auto;"><span class="pl-pds" style="box-sizing: border-box;">'</span>_orig_sol<span class="pl-pds" style="box-sizing: border-box;">'</span></span><span style="caret-color: rgb(36, 41, 46); color: rgb(36, 41, 46); font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 12px; white-space: pre; -webkit-text-size-adjust: auto; background-color: rgb(255, 255, 255);">]</span>&nbsp;
 with your new solution to interrupt the reversion.&nbsp;</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">I’ll defer to the experts. ;)&nbsp;</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Josh&nbsp;</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">On Oct 10, 2018, at 1:37 PM, Gladia Hotan &lt;<a href="mailto:gladiach@gmail.com">gladiach@gmail.com</a>&gt; wrote:<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p></p>
<div dir="ltr">
<div class="gmail_default" style="font-size:small">Hi Joshua,</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">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?</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Best,</div>
<div class="gmail_default" style="font-size:small">Gladia</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Wed, Oct 10, 2018 at 3:30 PM Bear, Joshua &lt;<a href="mailto:JOSHUA.BEAR@ucdenver.edu">JOSHUA.BEAR@ucdenver.edu</a>&gt; wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space">Hi Gladia,&nbsp;
<div><br>
</div>
<div>You should be able to do this by using the mne module rather than trying to call it from the forward solution object.&nbsp;</div>
<div><br>
</div>
<div>&nbsp;mne.write_forward_solution(fname, fwd) &nbsp;# fname should be the filename of your choice, fwd is the output from convert_forward_solution&nbsp;</div>
<div><br>
</div>
<div>See:&nbsp;</div>
<div><a href="https://martinos.org/mne/dev/generated/mne.write_forward_solution.html" target="_blank">https://martinos.org/mne/dev/generated/mne.write_forward_solution.html</a></div>
<div><br>
</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Josh</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div>
<div dir="auto" style="word-wrap:break-word;line-break:after-white-space">
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
Joshua Bear, MD, MA | Assistant&nbsp;Professor, Pediatric Neurology and&nbsp;Epilepsy</div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
University of Colorado and Children’s Hospital Colorado<br>
13123 East 16th Avenue, Box B-155 |&nbsp;Aurora, CO 80045 | Phone: 720-777-6138 | Fax: 720-777-7285&nbsp;</div>
<br class="m_5041556156196829445Apple-interchange-newline">
</div>
<br class="m_5041556156196829445Apple-interchange-newline">
</div>
<div><br>
<blockquote type="cite">
<div>On Oct 10, 2018, at 12:57 PM, Gladia Hotan &lt;<a href="mailto:gladiach@gmail.com" target="_blank">gladiach@gmail.com</a>&gt; wrote:</div>
<br class="m_5041556156196829445Apple-interchange-newline">
<div>
<p><span style="padding:3px 10px;border-radius:5px;color:#ffffff;font-weight:bold;display:inline-block;background-color:#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<div><br class="m_5041556156196829445webkit-block-placeholder">
</div>
<div dir="ltr">
<div class="gmail_default" style="font-size:small">Hi,</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Is there any way to save a converted forward solution obtained from mne.convert_forward_solution?</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Thanks and Best Regards,<br>
Gladia</div>
</div>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></div>
</blockquote>
</div>
<br>
</div>
</div>
<p><span style="padding:3px 10px;border-radius:5px;color:#ffffff;font-weight:bold;display:inline-block;background-color:#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p>
<p></p>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></blockquote>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div dir="ltr"><span>_______________________________________________</span><br>
<span>Mne_analysis mailing list</span><br>
<span><a href="mailto:Mne_analysis@nmr.mgh.harvard.edu">Mne_analysis@nmr.mgh.harvard.edu</a></span><br>
<span><a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a></span></div>
</blockquote>
</body>
</html>