UnitsDataHandler
A DataHandler that’s built for use with the units data we’ve collected.
Usually used through the UnitsData
object.
Properties and Methods
prefix_map: OrderedDict
postfix_map: OrderedDict
__init__(self):
load(self):
find_conversion(self, unit, target):
Attempts to find a conversion between two sets of units. Currently only implemented for “plain” units.
unit
:Any
No description…
target
:Any
No description…
:returns
:_
No description…
add_conversion(self, unit, target, value):
convert(self, unit, target):
Converts base unit into target using the scraped NIST data
unit
:Any
No description…
target
:Any
No description…
:returns
:_
No description…
Examples
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings