Mercurial > repos > iuc > imagej2_convert_format
comparison imagej2_base_utils.py @ 2:cf9ed4ef641d draft
planemo upload commit 369e40078146d00608d52205bb8cee66ae735b76-dirty
| author | iuc |
|---|---|
| date | Fri, 26 Jun 2015 05:28:18 -0400 |
| parents | 312e8ce708b1 |
| children | 9a24b7e68010 |
comparison
equal
deleted
inserted
replaced
| 1:14d09b0ab9e1 | 2:cf9ed4ef641d |
|---|---|
| 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 |
