Back to the main page.

Bug 1672 - test_headmodel_infinite fails

Reported 2012-08-23 12:14:00 +0200
Modified 2012-11-29 09:13:00 +0100
Product: FieldTrip
Component: forward
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P3 normal
Assigned to: Jan-Mathijs Schoffelen
Depends on:
See also:

Jan-Mathijs Schoffelen - 2012-08-23 12:14:44 +0200

Jan-Mathijs Schoffelen - 2012-08-23 12:17:35 +0200

This is due to ft_prepare_headmodel not dealing with the options in a correct way: for the infinite volume conductor no additional cfg options are needed, and no geometry needs to be created. adding the appropriate extra conditional statements in ft_prepare_headmodel will probably do the trick. final point here is that vol=ft_convert_units(vol) is executed towards the end of the function; probably no units need to be defined in this case (and it causes a crash when executed on an infinite vol). Therefore, I added if ~ft_voltype(vol, 'infinite') to make the execution of ft_convert_units conditional on the supported voltypes.

Jan-Mathijs Schoffelen - 2012-08-23 12:19:00 +0200

svn commit ft_prepare_headmodel.m Sending ft_prepare_headmodel.m Transmitting file data . Committed revision 6400.