[FieldTrip] ft_rejectvisual function gives errors in 2020 fieldtrip versions

Schoffelen, J.M. (Jan Mathijs) jan.schoffelen at donders.ru.nl
Tue Jun 2 09:48:31 CEST 2020


Hi Helena,

ft_rejectvisual is not deprecated. As a matter of fact, there has been some recent updates to this function, to make its behavior more robust. Since these changes have passed our internal tests, the new version has made it into the release version. Unfortunately, this seems to cause you some problems. As of yet, it is not clear whether this now is a genuine bug, or a feature of an inconsistency in your data, which only surfaces now. In order to be able to confirm your problem, you’d need to give a bit more detail about what you have been doing. Important details to include are some characteristics of the data, and a specification of the cfg that you used as an input to ft_rejectvisual. Also, you couuld try and diagnose the problem a bit more yourself by using the matlab debugger, which you can use to investigate why the variable info.cfg.ylim seems to have an unexpected number of elements (as the error message suggests).


Best wishes,

Jan-Mathijs



On 1 Jun 2020, at 20:51, Helena Pereira <hri.pereira at campus.fct.unl.pt<mailto:hri.pereira at campus.fct.unl.pt>> wrote:

Dear all,

I am analysing data from EEG subjects. To remove artifacts, I used a code that was computed using the ft_rejectvisual function of 20191019 fieldtrip version. However, when the fieldtrip was uptaded to the 20200521, this error appeared:

Index exceeds the number of array elements (1).

Error in rejectvisual_trial>redraw (line 274)
  ymax = info.cfg.ylim(2);

Error in rejectvisual_trial (line 96)
  redraw(h);

Error in ft_rejectvisual (line 230)
    [chansel, trlsel, cfg] = rejectvisual_trial(cfg,
    tmpdata);

Is ft_rejectvisual function deprecated? How can I solve this error? The version 20191019 is no longer available at the FTP server, but I know it works well because I tested the code with that old version.

Thanks in advance,
Best regards,
Helena Pereira

_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://doi.org/10.1371/journal.pcbi.1002202

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20200602/60fced15/attachment.htm>


More information about the fieldtrip mailing list