Back to the main page.
Bug 3128 - incorrect dimord after ft_connectivityanalysis
Status | CLOSED FIXED |
Reported | 2016-05-13 15:17:00 +0200 |
Modified | 2016-11-29 09:02:04 +0100 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P5 normal |
Assigned to: | Jan-Mathijs Schoffelen |
URL: | |
Tags: | |
Depends on: | |
Blocks: | 2978 |
See also: |
Robert Oostenveld - 2016-05-13 15:17:41 +0200
if I do this: cfg = []; cfg.channel = 'MEG'; cfg.demean = 'yes'; data = ft_preprocessing(cfg); % 266 trials cfg = []; cfg.method = 'mtmfft'; cfg.taper = 'hanning' cfg.output = 'powandcsd'; % this implies keeptrials freq = ft_freqanalysis(cfg, data); cfg = []; cfg.method = 'coh'; coh1 = ft_connectivityanalysis(cfg, freq); then I get this: >> coh1 coh1 = labelcmb: {17391x2 cell} dimord: 'chan_freq' cohspctrm: [17391x451 double] freq: [1x451 double] grad: [1x1 struct] cfg: [1x1 struct] where dimmed is incorrect. It should be chancbm_freq.
Jan-Mathijs Schoffelen - 2016-05-14 21:20:51 +0200
It works for now with the most recent pull request. Bit of a silly fix. Note to self: getdimord probably does the trick as well (and is a cleaner implementation). Once I get to doing a full cleanup sweep of ft_connectivityanalysis it should probably be addressed.