comparison imagej2_base_utils.py @ 1:8f7beef4f1f3 draft

planemo upload commit 378c3ecfbaed0330faf197811d379431b0f9e92c-dirty
author iuc
date Sun, 11 Oct 2015 13:30:44 -0400
parents 91d82f24657a
children c05d862ac753
comparison
equal deleted inserted replaced
0:91d82f24657a 1:8f7beef4f1f3
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 ):