diff imagej2_base_utils.py @ 4:7a8b05b111f9 draft

planemo upload commit 18df9e67efd4adafcde4eb9b62cd815e4afe9733-dirty
author iuc
date Wed, 26 Aug 2015 14:37:12 -0400
parents 9a24b7e68010
children a3806b0a32ed
line wrap: on
line diff
--- a/imagej2_base_utils.py	Tue Aug 04 11:15:04 2015 -0400
+++ b/imagej2_base_utils.py	Wed Aug 26 14:37:12 2015 -0400
@@ -86,21 +86,6 @@
     os.symlink( input_file, image_path )
     return image_path
 
-def get_max_heap_size_value( max_heap_size_type, max_heap_size ):
-    """
-    Return a string that can be used by the javabridge to set the size
-    of the memory allocation pool used by the JVM.  The value must be
-    determined to be a multiple of 1024 or it will be ignored.
-    """
-    if max_heap_size_type == 'default':
-        return None
-    if max_heap_size_type == 'megabytes':
-        if int( max_heap_size ) % 1024 not in [ 0, 256, 512 ]:
-            return None
-        return '%sm' % str( max_heap_size )
-    if max_heap_size_type == 'gigabytes':
-        return '%sg' % str( max_heap_size )
-
 def get_platform_info_dict():
     '''Return a dict with information about the current platform.'''
     platform_dict = {}
@@ -172,6 +157,7 @@
             return ' %.1f' % val
         elif val_type == 'int':
             return ' %d' % val
+    return ' %s' % val
 
 def stop_err( msg ):
     sys.stderr.write( msg )