<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><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>
It should be working but it doesn't
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&gt;&gt;&gt; raw.set_montage(montage)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Traceback (most recent call last):</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;&lt;/home/andraderenew/.local/lib/python3.7/site-packages/mne/externals/decorator.py:decorator-gen-30&gt;&quot;, line 2, in set_montage</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/home/andraderenew/.local/lib/python3.7/site-packages/mne/utils/_logging.py&quot;, line 90, in wrapper</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; return function(*args, **kwargs)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/channels.py&quot;, line 488, in set_montage</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; set_dig=set_dig, raise_if_subset=raise_if_subset)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/montage.py&quot;, line 1545, in _set_montage</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; _mnt = _get_montage_in_head(montage)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/montage.py&quot;, line 1356, in _get_montage_in_head</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; return transform_to_head(montage.copy())</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/montage.py&quot;, line 935, in transform_to_head</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; native_head_t = get_ras_to_neuromag_trans(nasion, lpa, rpa)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; File &quot;/home/andraderenew/.local/lib/python3.7/site-packages/mne/transforms.py&quot;, line 650, in get_ras_to_neuromag_trans</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; raise ValueError(&quot;Points have to be provided as one dimensional &quot;</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, 0);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">ValueError: Points have to be provided as one dimensional arrays of length 3.</span></div>
</div>
<div class=""><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 15 Mar 2020, at 11:58, Alexandre Gramfort &lt;<a href="mailto:alexandre.gramfort@inria.fr" class="">alexandre.gramfort@inria.fr</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br class="">
<br class="">
hi,<br class="">
<br class="">
if you can read your sfp file with read_custom_montage you can then<br class="">
use set_montage<br class="">
<br class="">
montage = mne.channels.read_custom_montage('xxx.sfp')<br class="">
raw.set_montage(montage)<br class="">
<br class="">
should just work. Montage is already a DigMontage so no need to call<br class="">
make_dig_montage<br class="">
<br class="">
HTH<br class="">
Alex<br class="">
<br class="">
<br class="">
On Sat, Mar 14, 2020 at 8:56 PM Andrade Rey René<br class="">
&lt;<a href="mailto:rene.andrade@edu.uah.es" class="">rene.andrade@edu.uah.es</a>&gt; wrote:<br class="">
<blockquote type="cite" class=""><br class="">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution<br class="">
<br class="">
Dear MNE experts:<br class="">
<br class="">
I have this issue because I don’t know how to manage a file .sfp for digitization. I have read the file with read_custom_montage but then I cannot use make_dig_montage. How is the proper way to do this?<br class="">
<br class="">
SIncerely,<br class="">
Andrade.<br class="">
<br class="">
_______________________________________________<br class="">
Mne_analysis mailing list<br class="">
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" class="">Mne_analysis@nmr.mgh.harvard.edu</a><br class="">
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis<br class="">
</blockquote>
<br class="">
_______________________________________________<br class="">
Mne_analysis mailing list<br class="">
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" class="">Mne_analysis@nmr.mgh.harvard.edu</a><br class="">
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>