[FieldTrip] Bug in ft_megplanar? (Version 20121209)

clme at tf.uni-kiel.de clme at tf.uni-kiel.de
Mon Dec 17 17:22:23 CET 2012


Hello ft-users,

Today I tried to plot planar gradients for neuromag306 data.

When calling avgFICplanar        = ft_megplanar(cfg, avgFIC);

I get the following error:
??? Error using ==> ft_checkdata at 406
This function requires ctf151, ctf275, bti148, bti248, itab153,
yokogawa160 or yokogawa64 data as input, but you are giving
neuromag306 data.

Error in ==> ft_megplanar at 106
data = ft_checkdata(data, 'datatype', {'raw' 'freq'}, 'feedback', 'yes',
'hassampleinfo', 'yes', 'ismeg', 'yes',
'senstype', {'ctf151', 'ctf275', 'bti148', 'bti248', 'itab153',
'yokogawa160', 'yokoga
Error in ==> reading_fif_planar at 39
avgFCplanar        = ft_megplanar(cfg, avgFC);

When manually adding ",'neuromag306'" to the senstype in line 106 and
commenting out line 297 erverything seems to work as it should.

Is this a bug or am I doing something wrong?





More information about the fieldtrip mailing list