class documentation
class UnitApplyAdapter(UnitManipulationAdapter): (source)
Adapter that adds units to objects that do not have units. The units used are chosen based on the name used for the object in the context. Note: This is an extremely thin wrapper around UnitManipulationAdapter. It only overrides the default settings for converters.
Class Variable | converters |
Undocumented |
Inherited from UnitManipulationAdapter
:
Method | adapt |
Convert 'value' to the desired units for objects of the given 'name' |
Method | adapt |
Convert 'value' to the desired units for objects of the given 'name' |
Class Variable | getitem |
Undocumented |
Class Variable | setitem |
Undocumented |
Method | _convert |
Find a converter for value and convert it to new_units. |