Back to the main page.

Bug 2383 - provenance of the mesh is not passed correctly into volume conductor

Status NEW
Reported 2013-11-20 22:29:00 +0100
Modified 2013-11-20 22:29:40 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P3 minor
Assigned to:
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2013-11-20 22:29:40 +0100

test_tutorial_headmodel_meg is presently failling. It turns out that around line 40 (and just before) there is cfg = []; cfg.method='singleshell'; vol = ft_prepare_headmodel(cfg, segmentedmri); the resulting vol is K>> vol vol = bnd: [1x1 struct] type: 'singleshell' unit: 'mm' K>> vol.bnd ans = pnt: [3000x3 double] tri: [5996x3 double] cfg: [1x1 struct] Unexpected is the cfg in the bnd, that is probably from ft_prepare_mesh called inside ft_prepare_headmodel. Ideally it would be vol.cfg.previous where cfg is from ft_prepare_headmodel and previous is from ft_volumesegment. See also private/rollback_provenance.m which should come in handy w.r.t. the call to ft_prepare_mesh.