Skip to content

Commit

Permalink
Proper obd.Unit.percent
Browse files Browse the repository at this point in the history
  • Loading branch information
green-green-avk committed Jul 9, 2023
1 parent e952b91 commit c997267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obd/UnitsAndScaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

# export the unit registry
Unit = pint.UnitRegistry()
Unit.define("percent = [] = %")
Unit.define("ratio = []")
Unit.define("percent = 1e-2 ratio = %")
Unit.define("gps = gram / second = GPS = grams_per_second")
Unit.define("lph = liter / hour = LPH = liters_per_hour")
Unit.define("ppm = count / 1000000 = PPM = parts_per_million")
Expand Down

0 comments on commit c997267

Please sign in to comment.