Back to the main page.

Bug 2543 - test_tutorial_beamformingextended: figure created with data on disk does not match the figure in the tutorial

Status CLOSED FIXED
Reported 2014-04-17 10:19:00 +0200
Modified 2019-08-10 12:29:51 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Diego Lozano Soldevilla
URL:
Tags:
Depends on:
Blocks:
See also:

Jan-Mathijs Schoffelen - 2014-04-17 10:19:41 +0200

Created attachment 614 poor figure I encountered this when working on bug 2439 See the figure attached. The figure created for the CMC looks fine.


Jörn M. Horschig - 2014-04-22 08:51:55 +0200

weird location for visual gamma. I guess this is not solved by a simple 'replace with new figure'-fix, right?


Diego Lozano Soldevilla - 2014-07-01 13:21:19 +0200

Created attachment 644 visual gamma 2


Diego Lozano Soldevilla - 2014-07-02 12:31:46 +0200

(In reply to Diego Lozano Soldevilla from comment #2) I just found a minor gamma peak location difference between data stored on disk (source_diff.mat) and the data generated in test_tutorial_beamformingextended.m test function. This creates an error in test_shared_virtual_channels.m test function datadir = '/home/common/matlab/fieldtrip/data/ftp/tutorial/beamformer_extended'; load(fullfile(datadir, 'source_diff')); cfg = []; cfg.method = 'slice'; cfg.funparameter = 'avg.pow'; %cfg.maskparameter = cfg.funparameter; % cfg.funcolorlim = [0.0 1.2]; % cfg.opacitylim = [0.0 1.2]; cfg.opacitymap = 'rampup'; ft_sourceplot(cfg,source_diff); %% DATA STORED ON DISK [maxval, maxpowindx] = max(source_diff.avg.pow); source_diff.pos(maxpowindx, :) 0.8000 -8.6000 0 % DATA GENERATED in test_tutorial_beamformingextended (r9682) s=load('/home/electromag/dieloz/source_diff.mat'); ft_sourceplot(cfg,s.source_diff); [maxval, maxpowindx] = max(s.source_diff.avg.pow); s.source_diff.pos(maxpowindx, :) 0.4000 -8.8000 2.4000


Diego Lozano Soldevilla - 2014-07-02 15:18:12 +0200

The figure difference was minimal and potentially coming from grid position differences: isequal(template.sourcemodel.pos,source_diff.pos) Data stored on disk and test script updated: /home/common/matlab/fieldtrip/data/ftp/tutorial/beamformer_extende/source_diff.mat Sending test_shared_virtual_channels.m Transmitting file data . Committed revision 9684.


Robert Oostenveld - 2019-08-10 12:29:51 +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.