Back to the main page.

Bug 3419 - ft_sourceanalysis with precomputed leadfields spends almost all its time in ft_checkconfig>checksizefun

Reported 2018-03-14 10:34:00 +0100
Modified 2019-08-10 12:37:27 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to:
Depends on:
See also:

Eelke Spaak - 2018-03-14 10:34:28 +0100

Created attachment 861 profiler results overall Which makes this very slow. This is on Matlab2017b Linux 64bit. I suspect the cell-array nature of the leadfields is what causes the whos('temp') call to take so long. See attachment for profiler results.

Eelke Spaak - 2018-03-14 10:35:18 +0100

Created attachment 862 profiler results for checksizefun

Eelke Spaak - 2018-03-14 10:37:19 +0100

Adding 'grid' to the 'norecursion' variable on line 728 actually solves this easily. I'll file a PR.

Robert Oostenveld - 2019-08-10 12:37:27 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue on