Mercurial > repos > iuc > imagej2_bunwarpj_adapt_transform
diff imagej2_bunwarpj_adapt_transform.py @ 2:81df7ade70ca draft
planemo upload commit 18df9e67efd4adafcde4eb9b62cd815e4afe9733-dirty
| author | iuc |
|---|---|
| date | Wed, 26 Aug 2015 14:39:11 -0400 |
| parents | 6beb1921064d |
| children |
line wrap: on
line diff
--- a/imagej2_bunwarpj_adapt_transform.py Tue Aug 04 13:22:13 2015 -0400 +++ b/imagej2_bunwarpj_adapt_transform.py Wed Aug 26 14:39:11 2015 -0400 @@ -12,8 +12,6 @@ parser.add_argument( '--target_image_format', dest='target_image_format', help='Target image format' ) parser.add_argument( '--input_elastic_transformation', dest='input_elastic_transformation', help='Input elastic transformation matrix' ) parser.add_argument( '--image_size_factor', dest='image_size_factor', type=float, help='Image size factor' ) -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.' ) parser.add_argument( '--output', dest='output', help='Warping index' ) args = parser.parse_args() @@ -23,9 +21,6 @@ target_image_path = imagej2_base_utils.get_input_image_path( tmp_dir, args.target_image, args.target_image_format ) input_elastic_transformation_path = imagej2_base_utils.get_input_image_path( tmp_dir, args.input_elastic_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' ) @@ -41,7 +36,7 @@ return ( ( val & ( val - 1 ) ) == 0 ) # Build the command line to adapt the 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 += ' -adapt_transform'
