Back to the main page.

Bug 2832 - cfg.debug=saveonerror fails after rollback_provenance

Status NEW
Reported 2015-02-10 15:20:00 +0100
Modified 2015-02-11 09:46:54 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to:
Depends on:
See also:

Robert Oostenveld - 2015-02-10 15:20:34 +0100

Eelke reported in bug 2830 that cfg.debug='saveonerror' did not work for him. I was able to reproduce and localise it. In ft_sourcestatistics around line 119 there is % ensure that the data in all inputs has the same channels, time-axis, etc. tmpcfg = keepfields(cfg, {'frequency', 'avgoverfreq', 'latency', 'avgovertime', 'parameter'}); [varargin{:}] = ft_selectdata(tmpcfg, varargin{:}); % restore the provenance information [cfg, varargin{:}] = rollback_provenance(cfg, varargin{:}); If I add error('test') just before this section, the saveonerror handling works. If I add error('test') just after this section, the saveonerror handling does not work. This problem might be related to bug 2655.