diff --git a/src/main/java/net/preibisch/bigstitcher/spark/TransformPoints.java b/src/main/java/net/preibisch/bigstitcher/spark/TransformPoints.java index 98f0ae4..8a3d11b 100644 --- a/src/main/java/net/preibisch/bigstitcher/spark/TransformPoints.java +++ b/src/main/java/net/preibisch/bigstitcher/spark/TransformPoints.java @@ -83,7 +83,7 @@ public Void call() throws Exception in.lines().forEach( s -> { if ( s.trim().length() > 0 && s.trim().matches( "[\\p{Space}*[-]*\\d+\\.?\\d*\\p{Space}*\\,?]+") ) - points.add( Import.csvStringToDoubleArray( s ) ); + points.add( Import.csvStringToDoubleArray( s.trim() ) ); else System.out.println( "Ignoring line: " + s ); } );