[FieldTrip] Align EEG electrode problem

"Jörn M. Horschig" jm.horschig at donders.ru.nl
Thu Nov 17 14:59:42 CET 2011


Hey Juan,

We rearranged the structure that contains sensor positions, thereby 
changed the names of some fields. Indeed, what you describe is causing 
the error, but the real error is that ft_electroderealign has not been 
changed accordingly. I created a bug out of your report. Thanks for 
letting us know.
http://bugzilla.fcdonders.nl/show_bug.cgi?id=1165
I think a fix would be to change orig.pnt to orig.chanpos, then 
everything should work fine. Could you check whether this works and let 
me know?

Best,
Jörn



If it still does not work, please let me/us know

On 11/17/2011 1:39 PM, Juan Pablo Neira wrote:
> Hello
>
> I am having problems using the 'Interactive method' of the
> ft_electroderealign function.  After I align the electrodes, I closed
> the figure to get the new position, but I got this error.
> ---------------------------------------------------------------------------
> ??? Reference to non-existent field 'pnt'.
>
> Error in ==>  ft_electroderealign at 489
>      norm.chanpos   = warp_apply(norm.m, orig.pnt);
> ---------------------------------------------------------------------------
> I tracked the error and I found that in the general setup of the
> function ft_electroderealign, the line:
>
> ft_preamble trackconfig
>
> Is changing the name of the cfg.elec.pnt variable for:
>
> cfg.elec.elecpos
>
> I think that is the origin or the error, because I am losing the pnt
> field.  Any suggestions?
>
> Regards,
>
> Juan Pablo Neira Vesga
> Christian Albrecht Universität zu Kiel
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip


-- 
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group

P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands

Contact:
E-Mail: jm.horschig at donders.ru.nl
Tel:    +31-(0)24-36-68493
Web: http://www.ru.nl/donders

Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands




More information about the fieldtrip mailing list