comparison imagej2_base_utils.py @ 2:99f75b64cdf3 draft

planemo upload commit 378c3ecfbaed0330faf197811d379431b0f9e92c-dirty
author iuc
date Sun, 11 Oct 2015 13:32:35 -0400
parents 269923244cc8
children 39e144c3952b
comparison
equal deleted inserted replaced
1:269923244cc8 2:99f75b64cdf3
152 def handle_none_type( val, val_type='float' ): 152 def handle_none_type( val, val_type='float' ):
153 if val is None: 153 if val is None:
154 return ' None' 154 return ' None'
155 else: 155 else:
156 if val_type == 'float': 156 if val_type == 'float':
157 return ' %.1f' % val 157 return ' %.3f' % val
158 elif val_type == 'int': 158 elif val_type == 'int':
159 return ' %d' % val 159 return ' %d' % val
160 return ' %s' % val 160 return ' %s' % val
161 161
162 def stop_err( msg ): 162 def stop_err( msg ):