comparison imagej2_base_utils.py @ 5:a3806b0a32ed draft default tip

planemo upload commit 378c3ecfbaed0330faf197811d379431b0f9e92c-dirty
author iuc
date Sun, 11 Oct 2015 13:30:31 -0400
parents 7a8b05b111f9
children
comparison
equal deleted inserted replaced
4:7a8b05b111f9 5:a3806b0a32ed
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 ):