API Reference for Enthought Tool Suite 3.2.0
Enthought has extended the original units implementation to handle temperature conversions. Temperature units are a special case because they can have a different origin.
This causes a fundamental ambiguity. What behavior do we expect when we convert temperature?
Option #1 When we convert 0 degrees centigrade we get 32 fahrenheit.
Option #2 When we convert a temperature difference of 0 degrees centigrade we get a temperature difference of 0 degrees fahrenheit.
By convention we have made the units system behave like in Option #1.
Therefore, don't pass relative temperatures through the units system.
Convert functions to take in strings and conveniently parse them to units, to return the conversion factor
| Local name | Refers to |
|---|---|
| InvalidConversion | enthought.units.unit.InvalidConversion |
| numpy | numpy |
© Copyright 2002-2009 Enthought, Inc.