[Mne_analysis] No digitization points found
Andrade Rey René
rene.andrade at edu.uah.es
Sun Mar 15 08:06:13 EDT 2020
External Email - Use Caution
It should be working but it doesn't
>>> raw.set_montage(montage)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "</home/andraderenew/.local/lib/python3.7/site-packages/mne/externals/decorator.py:decorator-gen-30>", line 2, in set_montage
File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/utils/_logging.py", line 90, in wrapper
return function(*args, **kwargs)
File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/channels.py", line 488, in set_montage
set_dig=set_dig, raise_if_subset=raise_if_subset)
File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/montage.py", line 1545, in _set_montage
_mnt = _get_montage_in_head(montage)
File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/montage.py", line 1356, in _get_montage_in_head
return transform_to_head(montage.copy())
File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/channels/montage.py", line 935, in transform_to_head
native_head_t = get_ras_to_neuromag_trans(nasion, lpa, rpa)
File "/home/andraderenew/.local/lib/python3.7/site-packages/mne/transforms.py", line 650, in get_ras_to_neuromag_trans
raise ValueError("Points have to be provided as one dimensional "
ValueError: Points have to be provided as one dimensional arrays of length 3.
On 15 Mar 2020, at 11:58, Alexandre Gramfort <alexandre.gramfort at inria.fr<mailto:alexandre.gramfort at inria.fr>> wrote:
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
On Sat, Mar 14, 2020 at 8:56 PM Andrade Rey René
<rene.andrade at edu.uah.es<mailto:rene.andrade at edu.uah.es>> wrote:
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.
_______________________________________________
Mne_analysis mailing list
Mne_analysis at nmr.mgh.harvard.edu<mailto: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<mailto:Mne_analysis at nmr.mgh.harvard.edu>
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200315/5049ced7/attachment-0001.html
More information about the Mne_analysis
mailing list