Back to the main page.

Bug 95 - merging ft_default.trackconfig and cfg.trackconfig fails

Status CLOSED WORKSFORME
Reported 2010-06-21 14:53:00 +0200
Modified 2011-01-14 13:29:58 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P5 normal
Assigned to: Robert Oostenveld
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2010-06-21 14:53:56 +0200

I expected to be able to do cfg.trackconfig = [] to override this behaviour for a single fieldtrip function, but it turned out that my ft_default.trackconfig = 'cleanup' was still overruling my cfg option. After setting ft_default.trackconfig = [] it did work, but the cfg option should have had precedence over the ft_default.


Robert Oostenveld - 2011-01-12 11:28:21 +0100

clear all whos whos global global ft_default ft_default.trackconfig = 'cleanup' cfg.trackconfig = []; ft_checkconfig(cfg) cfg = []; ft_checkconfig(cfg) cfg.trackconfig = 'something'; ft_checkconfig(cfg)