Back to the main page.

Bug 1163 - ft_timelockbaseline error when dimord 'subj_chan_time'

Status CLOSED FIXED
Reported 2011-11-17 09:08:00 +0100
Modified 2011-12-07 16:01:18 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Mark - 2011-11-17 09:08:09 +0100

ft_timelockbaselline gives an error when the data has data.dimord = 'subj_chan_time'. The function always searches first for data.avg struct. But data.avg is not present when data.dimord = 'subj_chan_time'. For now, I fixed this by commenting line 100-108. Best, Mark Noordenbos


Boris Reuderink - 2011-11-17 10:46:49 +0100

Changed the status of bugs without a specific owner to UNCONFIRMED. I'll try to replicate these bugs (potentially involving the submitter), and change confirmed bugs to NEW. Boris


Boris Reuderink - 2011-11-17 10:52:40 +0100

Dear Mark, Could you provide a simple script to reproduce this problem, and describe your actual output, and what you think is the correct output? Best, Boris


Mark - 2011-11-17 11:31:26 +0100

(In reply to comment #2) Dear Boris, Data = label: {30x1 cell} time: [1x400 double] individual: [19x30x400 double] dimord: 'subj_chan_time' cfg: [1x1 struct] cfg=[]; cfg.baseline=[-0.1 0]; Data=ft_timelockbaseline(cfg, Data) the input is timelock data with 30 channels and 400 timebins ??? Reference to non-existent field 'avg'. Error in ==> ft_timelockbaseline at 107 timelock.avg = ft_preproc_baselinecorrect(timelock.avg, tbeg, tend); Best, Mark


Boris Reuderink - 2011-11-18 14:55:33 +0100

Created attachment 188 Script to reproduce bug


Boris Reuderink - 2011-11-18 14:56:35 +0100

Thank you. I can confirm this bug with SVN release 4772.


Jan-Mathijs Schoffelen - 2011-11-23 15:11:04 +0100

fixed with revision 4802. among others, I added an explicit check for the avg-field


Jan-Mathijs Schoffelen - 2011-11-23 15:11:40 +0100

as per my last comment, it's now fixed