Back to the main page.

Bug 2509 - makeselection_cumtapcnt is causing problems in data without cumtapcnt

Status CLOSED FIXED
Reported 2014-03-21 14:39:00 +0100
Modified 2014-06-18 12:31:46 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks: 1021
See also:

Robert Oostenveld - 2014-03-21 14:39:11 +0100

freq = []; freq.dimord = 'rpt_chan_freq_time'; freq.label = {'1', '2', '3'}; freq.freq = 1:4; freq.time = 1:5; freq.powspctrm = randn(2, 3, 4, 5); cfg = []; cfg.avgovertime = 'yes'; freq_avgovertime = ft_selectdata(cfg, freq) Error using ft_selectdata_new>makeselection_cumtapcnt (line 666) the subfunction makeselection_cumtapcnt should only be called when there is a time dimension in the data Error in ft_selectdata_new (line 335) varargin{i} = makeselection_cumtapcnt(varargin{i}, selfreq{i}, avgoverfreq); Error in ft_selectdata (line 51) [varargout{1:nargout}] = ft_selectdata_new(varargin{:});


Robert Oostenveld - 2014-03-21 14:43:11 +0100

svn commit Sending test/test_bug1984_2187.m Sending test/test_ft_selectdata.m Sending utilities/ft_selectdata_new.m Transmitting file data ... Committed revision 9306. r9306 | roboos | 2014-03-21 14:42:23 +0100 (Fri, 21 Mar 2014) | 2 lines bugfix - when working on bug 2509 I detected a problem with the output dimord, which was inconsistent with the remaining fields after averaging. I added a section to the test script for ft_selectdata_new and updated the selectdata function. Furthermore, I implemented a workaround for http://bugzilla.fcdonders.nl/show_bug.cgi?id=2509


Robert Oostenveld - 2014-04-15 18:53:59 +0200

mac011> svn commit test/test_bug2509.m Adding test/test_bug2509.m Transmitting file data . Committed revision 9422. the problem has been resolved according to the test script.