diff imagej2_base_utils.py @ 2:ea7a01d0f218 draft

planemo upload commit 369e40078146d00608d52205bb8cee66ae735b76-dirty
author iuc
date Fri, 26 Jun 2015 05:28:23 -0400
parents dfe318d97378
children bb65623b90a8
line wrap: on
line diff
--- a/imagej2_base_utils.py	Fri Jun 19 16:59:14 2015 -0400
+++ b/imagej2_base_utils.py	Fri Jun 26 05:28:23 2015 -0400
@@ -95,7 +95,7 @@
     if max_heap_size_type == 'default':
         return None
     if max_heap_size_type == 'megabytes':
-        if max_heap_size % 1024 not in [ 0, 256, 512 ]:
+        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':