Problem with coregistration

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

External Email - Use Caution

hi,

2 questions:
- do you have the problem only with these data?
- did you use the mne anaconda environment we recommend?

if problem persists please continue the conversation here :
http://github.com/mne-tools/mne-python/issues

Best,
Alex

External Email - Use Caution

Dear Alex

thanks for the reply. I haven't worked with other EEG 3-d data. More than
a year ago I worked with CTF MEG data, it seemed fine. But then there were
other versions for both MNE and python (2). I install anaconda3 and others
according to the instructions at your webpage. I will repost as you
suggested.

best
Peng