From 0e8bf4dc9affe417971b8179b4d95d37c4be5f33 Mon Sep 17 00:00:00 2001 From: Stephan Preibisch Date: Fri, 6 Sep 2024 11:04:49 -0400 Subject: [PATCH] small fix --- .../java/net/preibisch/bigstitcher/spark/TransformPoints.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } );