Mercurial > code > home > repos > light9
diff bin/curvecalc @ 1860:5bcb950024af
reformat python
Ignore-this: 7bbe37d199612c9c74ef2904c3f13553
author | drewp@bigasterisk.com |
---|---|
date | Wed, 22 May 2019 00:09:13 +0000 |
parents | f066d6e874db |
children |
line wrap: on
line diff
--- a/bin/curvecalc Wed May 22 00:08:22 2019 +0000 +++ b/bin/curvecalc Wed May 22 00:09:13 2019 +0000 @@ -9,7 +9,6 @@ """ - import sys import imp sys.path.append('/usr/lib/python2.7/dist-packages') # For gtk @@ -413,7 +412,8 @@ ('input time', lambda t: "%.2fs" % t), ('output levels', lambda levels: textwrap.fill( "; ".join([ - "%s:%.2f" % (n, v) for n, v in list(levels.items())[:2] if v > 0 + "%s:%.2f" % (n, v) for n, v in list(levels.items())[:2] if v + > 0 ]), 70)), ('update period', lambda t: "%.1fms" % (t * 1000)), ('update status', lambda x: str(x)),