[Mne_analysis] Problem with coregistration

peng prion.w at gmail.com
Mon Sep 10 03:55:13 EDT 2018
Search archives:

        External Email - Use Caution        

Dear mne_analysers,

first thank you for the great software. I am using the python version
(0.16.2 at mac os, with python3, anaconda3) of mne, and I have some problems
with the coregistration (command *mne coreg*). I started with a template
mri and Neuroscan EEG 3dd file for locations of the EEG electrodes and
fiducials. I did the following:
1 by some conversions, I generate an ascii file with 3 columns of data,
indicating x, y, z coordinates of the fiducials and electrodes, which was
saved with elp extension.
2 This file was readin and saved with the following two lines:
cht = mne.channels.read_dig_montage (elp='/thePath/theFile.elp',
point_names=('nasion', 'lpa', 'rpa' ,'chan1', 'chan2', 'chanN');
cht.save('/thePath/theFile.fif');
3 I start mne coreg, I load the template mri image marked with fiducials,
then load "theFile.fif".

I got the error in the last step:
   File
"/UserPath/anaconda3/envs/mne/lib/python3.6/site-packages/traits/trait_notifiers.py",
line 519, in _dispatch_change_event
    self.dispatch( handler, *args )
  File
"/UserPath/anaconda3/envs/mne/lib/python3.6/site-packages/traits/trait_notifiers.py",
line 482, in dispatch
    handler( *args )
  File
"/UserPath/anaconda3/envs/mne/lib/python3.6/site-packages/traits/has_traits.py",
line 965, in wrapper0
    return function(arg)
  File
"/UserPath/anaconda3/envs/mne/lib/python3.6/site-packages/traits/has_traits.py",
line 3371, in notify
    self.trait_property_changed( name, old )
  File
"/UserPath/anaconda3/envs/mne/lib/python3.6/site-packages/traits/has_traits.py",
line 895, in decorator
    self.__dict__[ name ] = result = function( self )
  File
"/UserPath/anaconda3/envs/mne/lib/python3.6/site-packages/mne/gui/_file_traits.py",
line 309, in _get__info
    for idx, pos in enumerate(info.hsp):
TypeError: 'NoneType' object is not iterable
Coregistration: Excluding 0 head shape points with distance >= inf m.
^CTraceback (most recent call last):
  File "/UserPath/anaconda3/envs/mne/bin/mne", line 39, in <module>
    sys.exit(subprocess.call([sys.executable, cmd_path] + sys.argv[2:]))
  File "/UserPath/anaconda3/envs/mne/lib/python3.6/subprocess.py", line
269, in call
    return p.wait(timeout=timeout)
  File "/UserPath/anaconda3/envs/mne/lib/python3.6/subprocess.py", line
1457, in wait
    (pid, sts) = self._try_wait(0)
  File "/UserPath/anaconda3/envs/mne/lib/python3.6/subprocess.py", line
1404, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)

Do you think it is a data problem (the electrodes locations were not
correctly read and written) or some installation problem?

thanks in advance,

Peng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180910/a99696ad/attachment.html 


More information about the Mne_analysis mailing list