Back to the main page.

Bug 1896 - Bug in ft_freqanalysis since yesterday

Status CLOSED FIXED
Reported 2012-12-14 12:42:00 +0100
Modified 2019-08-10 11:56:46 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P3 normal
Assigned to: niels
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:48:29 +0100

Dear all, trying to do a TF-analysis a got an error message from matlab when running ft_freqanalyis. I did not alter the script I was using, and yesterday it worked fine. Below I added the script I am using and the matlab error message I got. Hope you can help, thanks, Niels


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

*** Bug 1895 has been marked as a duplicate of this bug. ***


Robert Oostenveld - 2012-12-17 08:59:40 +0100

(In reply to comment #1) Hi Niels, There has been a short period during which there was a buggy FT version on home/common, which probably was the cause for your error. I believe this is resolved now. Can you please confirm that it again works?


niels - 2012-12-17 11:25:19 +0100

Hi Robert, it is working fine again. Thanks, Niels.


niels - 2012-12-28 10:32:40 +0100

...


Robert Oostenveld - 2019-08-10 11:56:46 +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.