Back to the main page.
Bug 957 - ft_volumewrite should not be called in leadfield_fns
Status | CLOSED FIXED |
Reported | 2011-09-12 17:54:00 +0200 |
Modified | 2011-09-14 14:33:50 +0200 |
Product: | FieldTrip |
Component: | forward |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P1 normal |
Assigned to: | Cristiano Micheli |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Robert Oostenveld - 2011-09-12 17:54:14 +0200
the leadfield_fns function does the following % write the segmentation on disk cfg = []; cfg.coordsys = 'ctf'; cfg.parameter = 'seg'; cfg.filename = segfile; cfg.filetype = 'analyze'; ft_volumewrite(cfg, mri); which violates the modular design. If it is not clear, then we should discuss this at the FT meeting. please see http://fieldtrip.fcdonders.nl/code_guidelines?&#calling_functions_that_are_located_elsewhere