Back to the main page.
Bug 367 - megrealign example does not work
Status | CLOSED WORKSFORME |
Reported | 2011-01-06 13:17:00 +0100 |
Modified | 2011-11-11 11:20:04 +0100 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P1 normal |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Robert Oostenveld - 2011-01-06 13:17:14 +0100
Ana reported: "...example script which does not work: http://fieldtrip.fcdonders.nl/example/megrealign. The crash is caused, I think, by the fact that ft_megrealign now requires a template as an input, whereas the script attempts to make a template using this function"
Arjen Stolk - 2011-01-26 17:30:16 +0100
To be more specific, the error occurs at line 119 of ft_prepare_sourcemodel where this line of code is problematic: ft_filetype(cfg.headshape, blahblah) turns out that cfg.headshape is empty. The field does exist because it is created in the deault settings of ft_megrealign, namely: cfg.headshape = []; I'm not familiar using ft_megrealign and don't know what the purpose of cfg.headshape is in this matter. Should the field be removed or is an extra check in ft_prepare_sourcemodel necessary (whether cfg.headshape is not empty) to avoid problems with the calls to ft_filetype and fileparts?
Robert Oostenveld - 2011-10-12 12:48:32 +0200
I have created a test script test_bug367. With that test script, there is no problem any more, except for a plotting bug that I just reported as bug #1035