Back to the main page.

Bug 838 - ft_selectdata crashes when avgoverfreq on single freq data

Reported 2011-07-20 14:43:00 +0200
Modified 2011-08-17 15:13:09 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P1 normal
Assigned to: Jan-Mathijs Schoffelen
Depends on:
See also:

Stephen Whitmarsh - 2011-07-20 14:43:42 +0200

this is especially problematic since freqanalysis always want to avgoverfreq, even when this is unspecified (it then takes min max) see data attached. Just do ft_selectdata(singlefreqdata,'avgoverfreq','yes')

Stephen Whitmarsh - 2011-07-20 14:44:19 +0200

Created attachment 104 single freq data

Jan-Mathijs Schoffelen - 2011-07-28 20:40:24 +0200

changing the last line in utilities/private/selparam.m from param = setdiff(param, {'time', 'freq', 'channel','inside'}); into param = setdiff(param, {'time', 'freq', 'channel','inside','label'}); seems to do the trick here. Hmmm, let's see whether it will improve the other issues, too

Jan-Mathijs Schoffelen - 2011-07-28 20:40:43 +0200

Stephen, zou je kunnen kijken of dit voor jou nou werkt?

Jan-Mathijs Schoffelen - 2011-07-28 20:41:03 +0200

ik bedoel, wanneer ik de fix heb gecommit