Back to the main page.

Bug 1564 - Creation of trialinfo field using ft_redefinetrial

Status CLOSED FIXED
Reported 2012-06-27 17:26:00 +0200
Modified 2012-07-04 16:58:30 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P3 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on: 1558
Blocks:
See also:

- 2012-06-27 17:26:30 +0200

Hi, I'm using the version of the 15th of May 2012, but I checked with the last version (26th of June) and the bug was still there. I noticed that ft_redefinetrial doesn't create a trialinfo field, when the trl field of the cfg given as an input to ft_redefinetrial has more than 3 columns. To correct this, I added these line to ft_redefinetrial at line 268 : if ~remove && ~isfield(data, 'trialinfo') && size(trl,2)>3 data.trialinfo = trl(:,4:end); end It might be useful, but it probably needs to be checked, so that it doesn't create another bug... Cheers, Imen


Robert Oostenveld - 2012-06-27 18:10:49 +0200

this probably relates to bug #1558


- 2012-06-27 18:39:44 +0200

(In reply to comment #1) Indeed it seems related to bug #1558. I added a new comment to this bug. Thanks ! Imen


Jan-Mathijs Schoffelen - 2012-07-04 16:30:55 +0200

OK. Patch added. Thanks for the constructive thinking.