[Camino-users] Minor bugfix in PointSetToScheme.java

Philipp Ehses philipp.ehses at tuebingen.mpg.de
Tue Mar 12 05:32:25 PDT 2013


Hi all,

I just found out about your project and started to look at the tutorial 
on the camino website when I ran into a small problem: On my german 
ubuntu installation the 'pointsetoscheme' command produces a text file 
with comma separated decimals instead of decimals separated by points. 
Taking a look at PointSetToScheme.java, I noticed that the default 
locale is set to 'Locale.UK' in the execute method. Unfortunately, this 
is too late for the 'df' and 'bValDF' objects that are already 
initialized in the class definition.

Here's a small patch that fixes the problem by setting the locale and 
initializing the two affected objects in the constructor. I'm more used 
to C/C++ so this may not be the most elegant solution.

Cheers,

Philipp


-- 
Philipp Ehses, PhD
Dept. of Biomedical Magnetic Resonance, University of Tübingen
& MRC Department, Max Planck Institute for Biological Cybernetics
Spemannstr. 41
72076 Tübingen, Germany
phone: +49 (0)7071 601-937
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PointSetToScheme.diff
Type: text/x-patch
Size: 1577 bytes
Desc: not available
Url : http://www.nitrc.org/pipermail/camino-users/attachments/20130312/efe1c90e/PointSetToScheme.bin


More information about the Camino-users mailing list