Skip to content

Commit

Permalink
fix ohm printing for kiloohms etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
bqpd committed Oct 8, 2019
1 parent 4a08554 commit df7f668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpkit/repr_conventions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def unitstr(units, into="%s", options=UNIT_FORMATTING, dimless=""):
if not isinstance(units, Quantity):
return dimless
if options == ":~" and "ohm" in str(units.units):
rawstr = "ohm" # otherwise it'll be a capital Omega
rawstr = str(units.units) # otherwise it'll be a capital Omega
else:
rawstr = ("{%s}" % options).format(units.units)
units = rawstr.replace(" ", "").replace("dimensionless", dimless)
Expand Down

0 comments on commit df7f668

Please sign in to comment.