[FieldTrip] Bug in ft_megplanar? (Version 20121209)

Eelke Spaak eelke.spaak at donders.ru.nl
Mon Dec 17 17:42:11 CET 2012


Dear clme,

ft_megplanar is designed to compute an approximation of planar
magnetic gradient based on axial gradiometer data. This approximation
does not make sense if the data you have is already reflecting the
planar gradient, as is the case for neuromag306 data. Therefore, this
is not a bug, but a feature.

Best,
Eelke

On 17 December 2012 17:22,  <clme at tf.uni-kiel.de> wrote:
> 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?
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip



More information about the fieldtrip mailing list