From 222f130487f032b8af0031af629c37dbd97b9d21 Mon Sep 17 00:00:00 2001
From: Peter Steinbach <steinbach@scionics.de>
Date: Mon, 18 May 2015 16:57:11 +0200
Subject: [PATCH] added parseInt statement to discard padded 0s

---
 spim_registration/timelapse/deconvolution_CPU.bsh | 2 +-
 spim_registration/timelapse/deconvolution_GPU.bsh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/spim_registration/timelapse/deconvolution_CPU.bsh b/spim_registration/timelapse/deconvolution_CPU.bsh
index e38a7bc..f21f94d 100644
--- a/spim_registration/timelapse/deconvolution_CPU.bsh
+++ b/spim_registration/timelapse/deconvolution_CPU.bsh
@@ -21,7 +21,7 @@ System.out.println( "Load xml file: " );
 System.out.println( "selected_xml = " + image_file_directory + merged_xml);
 
 // Load general Parameters
-parallel_timepoints = System.getProperty( "parallel_timepoints" );
+parallel_timepoints = Integer.parseInt(System.getProperty( "parallel_timepoints" ));
 process_timepoint = System.getProperty( "process_timepoint" );
 process_channel = System.getProperty( "process_channel" );
 process_illumination = System.getProperty( "process_illumination" );
diff --git a/spim_registration/timelapse/deconvolution_GPU.bsh b/spim_registration/timelapse/deconvolution_GPU.bsh
index 7ffb45b..ac80666 100644
--- a/spim_registration/timelapse/deconvolution_GPU.bsh
+++ b/spim_registration/timelapse/deconvolution_GPU.bsh
@@ -21,7 +21,7 @@ System.out.println( "Load xml file: " );
 System.out.println( "selected_xml = " + image_file_directory + merged_xml);
 
 // Load general Parameters
-parallel_timepoints = System.getProperty( "parallel_timepoints" );
+parallel_timepoints = Integer.parseInt(System.getProperty( "parallel_timepoints" ));
 process_timepoint = System.getProperty( "process_timepoint" );
 process_channel = System.getProperty( "process_channel" );
 process_illumination = System.getProperty( "process_illumination" );
-- 
GitLab