Back to the main page.

Bug 1895 - see Bug 1896

Status CLOSED DUPLICATE
Reported 2012-12-14 12:42:00 +0100
Modified 2019-08-10 11:56:16 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P3 normal
Assigned to:
URL:
Tags:
Depends on:
Blocks:
See also:

niels - 2012-12-14 12:42:36 +0100

SCRIPT: function [TFA_All] = ft_TFA_GAMMA(ds, cleantrl) %% Preprocess %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% cfg.dataset = ds; cfg.trl = cleantrl; cfg.channel = {'MEG'}; cfg.continuous = 'yes'; cfg.dftfilter = 'yes'; cfg.padding = 5; cfg.demean = 'yes'; prepdata = ft_preprocessing(cfg); %% To Planar-Gradient %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% cfg = []; cfg.feedback = 'no'; cfg.method = 'template'; cfg.neighbours = ft_prepare_neighbours(cfg, prepdata); cfg.planarmethod = 'sincos'; cfg.channel = {'MEG'}; cfg.trials = 'all'; planar_data = ft_megplanar(cfg,prepdata); %% Time-Frequency Analyses %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% cfg = []; cfg.output = 'pow'; cfg.channel = 'MEG'; cfg.method = 'mtmconvol'; cfg.taper = 'dpss'; cfg.foi = 40:2.5:120; cfg.toi = -0.6:0.05:1.4; cfg.trials = 'all'; cfg.t_ftimwin = ones(length(cfg.foi),1).*0.4; cfg.tapsmofrq = 5; % K= (cfg.tapsmofrq./(1./cfg.t_ftimwin))*2 -1;%finding number of tapers cfg.keeptrials = 'yes'; planar_TFA = ft_freqanalysis(cfg, planar_data); %% Combine Planar %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% cfg = []; TFA_All = ft_combineplanar(cfg,planar_TFA); TFA_All.grad = prepdata.grad; MATLAB ERROR-MESSAGE: the call to "ft_preprocessing" took 161 seconds and required the additional allocation of an estimated 0 MB Trying to load sensor neighbours from a template Estimating sensor type of data to determine the layout filename Data is of sensor type 'ctf275' Successfully loaded neighbour structure from ctf275_neighb.mat there are on average 7.3 neighbours per channel the call to "ft_prepare_neighbours" took 1 seconds and required the additional allocation of an estimated 0 MB the input is raw data with 273 channels and 690 trials average number of neighbours is 7.31 minimum distance between neighbours is 2.06 cm maximum distance between gradiometers is 4.42 cm the call to "ft_megplanar" took 5 seconds and required the additional allocation of an estimated 0 MB the input is raw data with 546 channels and 690 trials ??? Error using ==> ft_datatype_sens at 181 inconsistent number of channels in sensor description Error in ==> ft_datatype_raw at 99 data.grad = ft_datatype_sens(data.grad); Error in ==> ft_checkdata at 212 data = ft_datatype_raw(data, 'hassampleinfo', hassampleinfo); Error in ==> ft_freqanalysis at 219 data = ft_checkdata(data, 'datatype', {'raw', 'comp', 'mvar'}, 'feedback', cfg.feedback, 'hassampleinfo', 'yes'); Error in ==> ft_TFA_GAMMA at 39 planar_TFA = ft_freqanalysis(cfg, planar_data);


niels - 2012-12-14 12:56:53 +0100

see bug 1896


Robert Oostenveld - 2012-12-17 08:57:18 +0100

this bug is entered twice *** This bug has been marked as a duplicate of bug 1896 ***


Robert Oostenveld - 2019-08-10 11:56:16 +0200

This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on https://github.com/fieldtrip/fieldtrip/issues.