[FieldTrip] Potential function conflicts in Fieldtrip
r.oostenveld at donders.ru.nl
Tue May 29 16:55:36 CEST 2012
Thanks for bringing this to the attention. It is too bad that with MATLAB we do not have an easy way of using namespaces as in C++. That is why in FieldTrip we also make a distinction of functions that are publicly available and private functions that are only to be called by other FT functions. Most publicly available FT functions are prefixed with "ft_" to avoid name clashes (as in spm). Not all functions have been prefixed yet, but the longer-term plan is to make the ft_ prefix mandatory for all fieldtrip functions. The transition however has to be done with care, as to not break the users' analysis scripts.
Some of the functions you mention can (and probably should) be moved to a private folder. I have reported your email on http://bugzilla.fcdonders.nl as bug number 1493 where I will also follow it up.
On 26 May 2012, at 2:19, Arnaud Delorme wrote:
> Dear all,
> I have used the attached function on the latest Fieldtrip tarball (or should we say zipball these days?) and have found the potential following conflicts. I thought it might be interesting to try solving them to avoid potential issues.
> Potential conflict between /Users/arno/Downloads/fieldtrip-20120525/external/afni/GetPath.m and /Applications/MATLAB_R2010b.app/toolbox/fixedpoint/fixedpointtool/@fxptds/getpath.m
> Potential conflict between /Users/arno/Downloads/fieldtrip-20120525/external/afni/Norm.m and /Applications/MATLAB_R2010b.app/toolbox/matlab/matfun/norm.m
> Potential conflict between /Users/arno/Downloads/fieldtrip-20120525/external/dipoli/example.m and /Users/arno/Downloads/fieldtrip-20120525/external/neuroshare/Example.m
> Potential conflict between /Users/arno/Downloads/fieldtrip-20120525/external/openmeeg/solid_angle.m and /Users/arno/Downloads/fieldtrip-20120525/src/solid_angle.m
> Potential conflict between /Users/arno/Downloads/fieldtrip-20120525/external/openmeeg/triplot.m and /Applications/MATLAB_R2010b.app/toolbox/matlab/specgraph/triplot.m
> Potential conflict between /Users/arno/Downloads/fieldtrip-20120525/external/xml4mat/xml2struct.m and /Applications/MATLAB_R2010b.app/toolbox/bioinfo/biodemos/xml2struct.m
> Potential conflict between /Users/arno/Downloads/fieldtrip-20120525/fileio/write_fcdc_spike.m and /Users/arno/Downloads/fieldtrip-20120525/compat/write_fcdc_spike.m
> Potential conflict between /Users/arno/Downloads/fieldtrip-20120525/utilities/istrue.m and /Applications/MATLAB_R2010b.app/toolbox/rptgen/rptgenv1/@cloif/istrue.m
> Potential conflict between /Users/arno/Downloads/fieldtrip-20120525/utilities/nearest.m and /Applications/MATLAB_R2010b.app/toolbox/fixedpoint/fixedpoint/nearest.m
> Arnaud Delorme, PhD
> Centre de Recherche Cerveau et Cognition - UMR 5549
> Pavillon Baudot, Hopital Purpan, BP 25202
> 31052 Toulouse Cedex, France
> fieldtrip mailing list
> fieldtrip at science.ru.nl
More information about the fieldtrip