Back to the main page.

Bug 2179 - ft_singleplotER: call to ft_checkconfig(...,'createsubcfg','preproc') causes crash

Reported 2013-05-26 15:09:00 +0200
Modified 2013-10-26 18:01:33 +0200
Product: FieldTrip
Component: plotting
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P3 normal
Assigned to: Jan-Mathijs Schoffelen
Depends on:
See also:

Jan-Mathijs Schoffelen - 2013-05-26 15:09:06 +0200

when input is connectivity data that needs cfg.refchannel. Reason: ft_checkconfig wants to put cfg.refchannel into cfg.preproc.refchannel. However, functionality in preproc is different (specifying the reference channel for re-referencing) than the expected functionality in the plotting (reference channel for plotting). The crash is probably introduced by revision 8138 by Jorn

Jörn M. Horschig - 2013-06-05 10:38:53 +0200

true... hmm... why is that done anyways? It would be more intuitive if the user had to put all preprocessing options in cfg.preproc himself rather than having a function pushing random things there.

Jan-Mathijs Schoffelen - 2013-07-22 13:15:53 +0200

I now circumvented the problem by changing ft_multiplot and ft_singleplot such that only ft_checkconfig is called when it seems reasonable to expect a subfunction to be needed (i.e. when the input data is not frequency domain). The reason being that freq2raw (in ft_checkdata) starts whining if the input data does not have rpt in the dimord. (this is in addition to the refchannel problem that initiated this bug).

Jan-Mathijs Schoffelen - 2013-07-22 13:17:03 +0200

bash-4.1$ svn commit -m "bugfix - 2179 provide fix when frequency connectivity data is to be plotted, where the call to ft_checkconfig screws up the cfg" ft_multiplotER.m ft_singleplotER.m Sending ft_multiplotER.m Sending ft_singleplotER.m Transmitting file data .. Committed revision 8327.