comparison imagej2_base_utils.py @ 8:083472ffb839 draft

planemo upload commit 369e40078146d00608d52205bb8cee66ae735b76-dirty
author iuc
date Fri, 26 Jun 2015 05:28:51 -0400
parents 7a96d686d380
children 8a14f00234e0
comparison
equal deleted inserted replaced
7:be709f819445 8:083472ffb839
93 determined to be a multiple of 1024 or it will be ignored. 93 determined to be a multiple of 1024 or it will be ignored.
94 """ 94 """
95 if max_heap_size_type == 'default': 95 if max_heap_size_type == 'default':
96 return None 96 return None
97 if max_heap_size_type == 'megabytes': 97 if max_heap_size_type == 'megabytes':
98 if max_heap_size % 1024 not in [ 0, 256, 512 ]: 98 if int( max_heap_size ) % 1024 not in [ 0, 256, 512 ]:
99 return None 99 return None
100 return '%sm' % str( max_heap_size ) 100 return '%sm' % str( max_heap_size )
101 if max_heap_size_type == 'gigabytes': 101 if max_heap_size_type == 'gigabytes':
102 return '%sg' % str( max_heap_size ) 102 return '%sg' % str( max_heap_size )
103 103