Back to the main page.

Bug 3015 - ft_prepare_headmodel: when calling ft_prepare_mesh, cfg.method may not be configurable for the lower-level function

Status CLOSED WONTFIX
Reported 2015-11-26 16:14:00 +0100
Modified 2018-11-19 15:33:59 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P5 normal
Assigned to: Jan-Mathijs Schoffelen
URL:
Tags:
Depends on:
Blocks:
See also:

Jan-Mathijs Schoffelen - 2015-11-26 16:14:04 +0100

I encountered this when calling ft_prepare_headmodel with cfg.method = 'singleshell', and a segmented MRI in the input. ft_prepare_headmodel calls ft_prepare_mesh, which supports a cfg.method as well (expecting it to be either projectmes/isosurface/iso2mesh). The behaviour of ft_prepare_mesh is in this way not configureable. It can probably be bypassed by calling ft_prepare_mesh directly on the segmented volume, and pass the mesh on to ft_prepare_headmodel, but then I suspect that the support for segmented volumes in the input for ft_prepare_headmodel does not make much sense.


Jan-Mathijs Schoffelen - 2018-11-14 10:20:15 +0100

This issue is still open. It's not so clear how to move forward here, because ft_prepare_headmodel has a cfg.method of its own, so it is not meaningful to pass on the cfg.method transparently to ft_prepare_mesh. If anything, we could consider a cfg.meshmethod or so, but this is also not ideal. Since this has been open for 3 years already, and nobody seems to care enough about it, I will close this for now, to be able to get a better view on bugs with higher priority.