Mercurial > repos > iuc > imagej2_bunwarpj_raw_transform
diff imagej2_bunwarpj_raw_transform.py @ 3:2a8118c2ec03 draft
planemo upload commit 18df9e67efd4adafcde4eb9b62cd815e4afe9733-dirty
| author | iuc |
|---|---|
| date | Wed, 26 Aug 2015 14:38:28 -0400 |
| parents | 6f129c1ec6d1 |
| children |
line wrap: on
line diff
--- a/imagej2_bunwarpj_raw_transform.py Tue Aug 04 13:21:24 2015 -0400 +++ b/imagej2_bunwarpj_raw_transform.py Wed Aug 26 14:38:28 2015 -0400 @@ -15,8 +15,6 @@ parser.add_argument( '--source_out', help='Output source image' ) parser.add_argument( '--source_out_datatype', help='Output registered source image format' ) parser.add_argument( '--jython_script', dest='jython_script', help='Path to the Jython script' ) -parser.add_argument( '--max_heap_size_type', dest='max_heap_size_type', help='Type (default or megabytes) of max_heap_size value' ) -parser.add_argument( '--max_heap_size', dest='max_heap_size', help='Maximum size of the memory allocation pool used by the JVM.' ) args = parser.parse_args() @@ -27,9 +25,6 @@ target_image_path = imagej2_base_utils.get_input_image_path( tmp_dir, args.target_image, args.target_image_format ) raw_transformation_path = imagej2_base_utils.get_input_image_path( tmp_dir, args.raw_transformation, 'txt' ) -# Set the size of the memory allocation pool used by the JVM. -memory_size = imagej2_base_utils.get_max_heap_size_value( args.max_heap_size_type, args.max_heap_size ) - # Define command response buffers. tmp_out = tempfile.NamedTemporaryFile().name tmp_stdout = open( tmp_out, 'wb' ) @@ -37,7 +32,7 @@ tmp_stderr = open( tmp_err, 'wb' ) # Build the command line to apply the raw transformation. -cmd = imagej2_base_utils.get_base_cmd_bunwarpj( memory_size ) +cmd = imagej2_base_utils.get_base_cmd_bunwarpj( None ) if cmd is None: imagej2_base_utils.stop_err( "bUnwarpJ not found!" ) cmd += ' -raw_transform' @@ -60,7 +55,7 @@ tmp_err = tempfile.NamedTemporaryFile().name tmp_stderr = open( tmp_err, 'wb' ) -cmd = imagej2_base_utils.get_base_command_imagej2( memory_size, jython_script=args.jython_script ) +cmd = imagej2_base_utils.get_base_command_imagej2( None, jython_script=args.jython_script ) if cmd is None: imagej2_base_utils.stop_err( "ImageJ not found!" ) cmd += ' %s %s %s' % ( tmp_source_out_tiff_path,
