diff imagej2_base_utils.py @ 1:9e8524cf6c84 draft

planemo upload commit 369e40078146d00608d52205bb8cee66ae735b76-dirty
author iuc
date Fri, 26 Jun 2015 05:29:14 -0400
parents 0219a764e425
children d6663487dc48
line wrap: on
line diff
--- a/imagej2_base_utils.py	Fri Jun 19 17:00:07 2015 -0400
+++ b/imagej2_base_utils.py	Fri Jun 26 05:29:14 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':