Skip to content

Commit

Permalink
Update qstr.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bqpd committed Dec 7, 2017
1 parent 645d9ab commit 4056fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpkitmodels/tools/qstr.py
Expand Up @@ -2,4 +2,4 @@

def qstr(qty):
'Converts a pint quantity to a nice string for display'
return "%-.4g %s" % (qty.magnitude, u"{:~}".format(qty.units)) if hasattr(qty, "magnitude") else (qty, "")
return "%-.4g%s" % (qty.magnitude, u" {:~}".format(qty.units)) if hasattr(qty, "magnitude") else (qty, "")

0 comments on commit 4056fbc

Please sign in to comment.