class documentation

class UnitCorrectorAdapter(UnitManipulationAdapter): (source)

View In Hierarchy

Overwrite units on an object with a new set of units. The new units are found based on the name for the object in the context. Note: This is an extremely thin wrapper around UnitManipulationAdapter. It only overrides the default settings for converters. fixme: We may want to modify converters so that they don't overwrite compatible units with new units. We may only want to correct untis that are completely screwed up...

Class Variable converters Undocumented

Inherited from UnitManipulationAdapter:

Method adapt_getitem Convert 'value' to the desired units for objects of the given 'name'
Method adapt_setitem Convert 'value' to the desired units for objects of the given 'name'
Class Variable getitem_units Undocumented
Class Variable setitem_units Undocumented
Method _convert Find a converter for value and convert it to new_units.