Back to the main page.

Bug 172 - trialfun_general crashes with cfg.trialdef.eventtype='gui'

Status CLOSED FIXED
Reported 2010-09-29 09:11:00 +0200
Modified 2011-11-11 11:20:05 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P1 normal
Assigned to: Roemer van der Meij
URL:
Tags:
Depends on:
Blocks:
See also:

Jan-Mathijs Schoffelen - 2010-09-29 09:11:50 +0200

I get the following screen output: >> cfg=ft_definetrial(cfg) Warning: no trialfun was specified, using trialfun_general > In ft_definetrial at 95 evaluating trialfunction 'trialfun_general' reading the events from 'Subject01.ds/Subject01.res4' ??? Undefined function or method 'select_channel_list' for input arguments of type 'cell'. Error in ==> trialfun_general at 206 indx = select_channel_list(eventstrings, selected , 'Select events'); Error in ==> ft_definetrial at 126 [trl, event] = feval(cfg.trialfun, cfg); 206 indx = select_channel_list(eventstrings, selected , 'Select events'); When using the following cfg: >> cfg cfg = trialdef: [1x1 struct] dataset: 'Subject01.ds' >> cfg.trialdef ans = eventtype: 'gui' select_channel_list is apparently missing


Roemer van der Meij - 2010-11-03 16:03:36 +0100

The function select_channel_list is in trunk/private. For trialfun_general to work it should be placed, as an external, in trunk/trialfun/private (which doesn't exist yet). I don't know how to do this, but this is how it can be fixed.


Jan-Mathijs Schoffelen - 2010-11-05 09:12:41 +0100

externals are created like this cd ~/matlab/fieldtrip/trialfun mkdir private svn propedit svn:externals private this opens a text editor and you have to include the line ../../private/select_channel_list.m select_channel_list.m kind kan de was doen, ahum. Could you check whether it works? Thanks, JM


Roemer van der Meij - 2010-11-05 11:28:42 +0100

I test it at home/common via a colleague, and it works perfect now. However, I get the following error in my own working copy during an svn update: ******** svn: warning: Error handling externals definition for 'trialfun/private/select_channel_list.m': svn: warning: URL 'svn+ssh://roevdmei@cvs.fcdonders.nl/home/svnroot/fieldtrip/trunk/trialfun/private/select_channel_list.m' at revision 2073 doesn't exist ******** Any idea what could be the problem?


Robert Oostenveld - 2011-11-11 11:20:05 +0100

I closed all bugs that were recently resolved.