# No digitization points found

**URL:** <https://mne.discourse.group/t/no-digitization-points-found/2113>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [March 14, 2020, 7:56pm UTC](https://mne.discourse.group/t/no-digitization-points-found/2113 "2020-03-14T19:56:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [March 14, 2020, 7:56pm UTC](https://mne.discourse.group/t/no-digitization-points-found/2113/1 "2020-03-14T19:56:16Z")

</div>

External Email - Use Caution

Dear MNE experts:

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?

SIncerely,  
Andrade.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [March 15, 2020, 10:58am UTC](https://mne.discourse.group/t/no-digitization-points-found/2113/2 "2020-03-15T10:58:32Z")

</div>

External Email - Use Caution

hi,

if you can read your sfp file with read\_custom\_montage you can then  
use set\_montage

montage = mne.channels.read\_custom\_montage('xxx.sfp')  
raw.set\_montage(montage)

should just work. Montage is already a DigMontage so no need to call  
make\_dig\_montage

HTH  
Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [March 15, 2020, 12:06pm UTC](https://mne.discourse.group/t/no-digitization-points-found/2113/3 "2020-03-15T12:06:13Z")

</div>

External Email - Use Caution

It should be working but it doesn't

> > > raw.set\_montage(montage)

Traceback (most recent call last):  
&nbsp;&nbsp;File "\<stdin\>", line 1, in \<module\>  
&nbsp;&nbsp;File "\</home/andraderenew/.local/lib/python3.7/site-packages/mne/externals/decorator.py:decorator-gen-30\>", line 2, in set\_montage  
&nbsp;&nbsp;File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/utils/\_logging.py", line 90, in wrapper  
&nbsp;&nbsp;&nbsp;&nbsp;return function(\*args, \*\*kwargs)  
&nbsp;&nbsp;File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/channels.py", line 488, in set\_montage  
&nbsp;&nbsp;&nbsp;&nbsp;set\_dig=set\_dig, raise\_if\_subset=raise\_if\_subset)  
&nbsp;&nbsp;File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/montage.py", line 1545, in \_set\_montage  
&nbsp;&nbsp;&nbsp;&nbsp;\_mnt = \_get\_montage\_in\_head(montage)  
&nbsp;&nbsp;File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/montage.py", line 1356, in \_get\_montage\_in\_head  
&nbsp;&nbsp;&nbsp;&nbsp;return transform\_to\_head(montage.copy())  
&nbsp;&nbsp;File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/montage.py", line 935, in transform\_to\_head  
&nbsp;&nbsp;&nbsp;&nbsp;native\_head\_t = get\_ras\_to\_neuromag\_trans(nasion, lpa, rpa)  
&nbsp;&nbsp;File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/transforms.py", line 650, in get\_ras\_to\_neuromag\_trans  
&nbsp;&nbsp;&nbsp;&nbsp;raise ValueError("Points have to be provided as one dimensional "  
ValueError: Points have to be provided as one dimensional arrays of length 3.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [March 15, 2020, 1:48pm UTC](https://mne.discourse.group/t/no-digitization-points-found/2113/4 "2020-03-15T13:48:36Z")

</div>

External Email - Use Caution

please open an issue at [https://github.com/mne-tools/mne-python/issues](https://github.com/mne-tools/mne-python/issues)  
with some data and code so we can replicate.

thanks  
Alex
