Back to the main page.
Bug 2356 - get rid of the cfg.units option
Status | CLOSED FIXED |
Reported | 2013-10-31 15:56:00 +0100 |
Modified | 2014-02-24 10:56:39 +0100 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Mac OS |
Importance: | P3 normal |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Robert Oostenveld - 2013-10-31 15:56:42 +0100
there are three functions that use cfg.units to "fix" their input MRI volume data, in case the input data does not contain units. This fixing of the units should be part of ft_checkdata not of the main FT functions. Also, if the data (still) does not contain units, the user might have to fix it in the data structure, as units are part of default FT data structures for quite some time now. This affects ft_sourceplot.m ft_volumenormalise.m ft_volumesegment.m The cfg.units and the cfg.coordsys option should be removed, and the hasunits/hascoordsys needs to be implemented in ft_checkdata.
Robert Oostenveld - 2013-10-31 16:11:02 +0100
mac001> svn commit ft_sourceplot.m ft_volumenormalise.m ft_volumesegment.m utilities/ft_checkdata.m Sending ft_sourceplot.m Sending ft_volumenormalise.m Sending ft_volumesegment.m Sending utilities/ft_checkdata.m Transmitting file data .... Committed revision 8680.