Back to the main page.

Bug 2573 - databrowser cannot plot components since sample info is missing

Reported 2014-05-12 15:06:00 +0200
Modified 2019-08-10 12:28:31 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Eelke Spaak
Depends on:
See also:

- 2014-05-12 15:06:11 +0200

trying to plot some ICA data. because I downsampled before ICA there is no longer a sampleinfo field in the data, and therefore not in the component structure either. databrowser will not plot... cfg=[]; cfg.viewmode='component'; cfg.layout='CTF275.lay';; ft_databrowser(cfg,comp_seated); ??? Reference to non-existent field 'sampleinfo'. Error in ==> ft_databrowser at 280 trlorg(:,[1 2]) = data.sampleinfo;

Eelke Spaak - 2014-05-12 17:23:53 +0200

tracked this down to the following: >> comp comp = fsample: 300 time: {1x354 cell} trial: {1x354 cell} topo: [268x268 double] unmixing: [268x268 double] label: {268x1 cell} topolabel: {268x1 cell} grad: [1x1 struct] sampleinfo: [354x2 double] cfg: [1x1 struct] >> ft_datatype(comp, 'timelock') ans = 1 so somewhere in the code this is being incorrectly flagged as a timelocked structure. Now proceeding to fix :)

Eelke Spaak - 2014-05-12 17:31:17 +0200

bash-4.1$ svn commit utilities/ft_datatype.m Sending utilities/ft_datatype.m Transmitting file data . Committed revision 9504. Fixed. Since this might be related to bug 2518 (though I'm not sure), I'm adding Robert as cc, just so he knows what I've been up to.

Robert Oostenveld - 2019-08-10 12:28:31 +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