[FieldTrip] Error in ft_rejectartifact for the newest fieldtrip version
jan-mathijs schoffelen
jan.schoffelen at donders.ru.nl
Tue Aug 6 13:13:09 CEST 2013
Hi Izabela,
This is indeed a bug. We reorganized our compat-directory, that is dealing with backward compatibility issues. One of these issues was to support backward compatibility for calling ft-functions without the ft_prefix. E.g. calling freqanalysis should redirect to a call to ft_freqanalysis. With this feature removed, ft_rejectartifact cannot execute artifact_xxx, because it is not redirected anymore to ft_artifact_xxx.
I have fixed this. It should be available within 15 minutes on the DCCN Fieldtrip version, and in the download version as of tonight.
Thanks for reporting,
Jan-Mathijs
On Aug 6, 2013, at 12:10 PM, Izabela Mikula wrote:
> Dear all,
> I was wondering if any of you have ever encountered similar problem and might know if I'm doing something wrong or it is a bug..
>
> I have tried using (my old scripts for preprocessing) ft_rejectartifact(cfg, data) but I get an error:
>
> evaluating artifact_jump
> ??? Error using ==> feval
> Undefined function or method 'artifact_jump' for input arguments of type 'struct'.
>
> Error in ==> ft_rejectartifact at 257
> cfg = feval(sprintf('artifact_%s', cfg.artfctdef.type{type}), cfg, data);
>
> It is important to note that this error only occurs when using the newest fieldtrip version. For previous versions it works without any problems. I have also tried multiple datasets, but the problem remains.
>
> data =
>
> fsample: 1200
> grad: [1x1 struct]
> sampleinfo: [180x2 double]
> trialinfo: [180x1 double]
> trial: {1x180 cell}
> time: {1x180 cell}
> label: {273x1 cell}
> cfg: [1x1 struct]
>
> and
>
> cfg.artfctdef =
>
> reject: 'complete'
> jump: [1x1 struct]
> muscle: [1x1 struct]
> type: {2x1 cell}
> minaccepttim: 0.1000
> crittoilim: []
> feedback: 'no'
>
> Thanks in advance!
>
> Best,
> Izabela
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
Jan-Mathijs Schoffelen, MD PhD
Donders Institute for Brain, Cognition and Behaviour,
Centre for Cognitive Neuroimaging,
Radboud University Nijmegen, The Netherlands
Max Planck Institute for Psycholinguistics,
Nijmegen, The Netherlands
J.Schoffelen at donders.ru.nl
Telephone: +31-24-3614793
http://www.hettaligebrein.nl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130806/c211f852/attachment-0002.html>
More information about the fieldtrip
mailing list