Mercurial > repos > iuc > imagej2_binary_to_edm
comparison imagej2_base_utils.py @ 1:51188f1b546e draft
planemo upload commit 378c3ecfbaed0330faf197811d379431b0f9e92c-dirty
| author | iuc |
|---|---|
| date | Sun, 11 Oct 2015 13:30:11 -0400 |
| parents | c43f184786a0 |
| children | c58b939c862a |
comparison
equal
deleted
inserted
replaced
| 0:c43f184786a0 | 1:51188f1b546e |
|---|---|
| 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 ): |
