Back to the main page.

Bug 1578 - ft_volumelookup adds empty cfg structures, but checks with isfield rather than isempty

Reported 2012-07-02 12:26:00 +0200
Modified 2019-08-10 11:56:34 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to:
Depends on:
See also:

Jörn M. Horschig - 2012-07-02 12:26:21 +0200

cfg.maskparameter = ft_getopt(cfg,'maskparameter'); cfg.roi = ft_getopt(cfg,'roi'); if isfield(cfg, 'roi'); roi2mask = 1; elseif isfield(cfg, 'maskparameter') mask2label = 1; else gonna fix this rightaway. but, does this function work at all with these settings? won't it give undesired output all the time?

Jörn M. Horschig - 2012-07-02 17:04:42 +0200

svn ci ft_volumelookup.m -m "bugfix-#1578-cfg handling fixed" Sending ft_volumelookup.m Transmitting file data . Committed revision 6192.

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