PySharp Units of Measure
Units of Measure in Python
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
uom.unit_of_measure.Reducer Class Reference

This class reduces a unit of measure to its most basic scalar units of measure. More...

Public Member Functions

def __init__ (self)
 
def explode (self, uom)
 
def explodeRecursively (self, uom, level)
 
def addTerm (self, uom, invert)
 
def buildBaseString (self)
 
def __str__ (self)
 

Public Attributes

 MAX_RECURSIONS
 
 STARTING_LEVEL
 
 terms
 
 mapScalingFactor
 
 pathExponents
 
 counter
 

Static Public Attributes

string MULT = '\xB7'
 
string DIV = '/'
 
string POW = '^'
 
string SQ = '\xB2'
 
string CUBED = '\xB3'
 
string LP = '('
 
string RP = ')'
 
string ONE = '1'
 

Detailed Description

This class reduces a unit of measure to its most basic scalar units of measure.


The documentation for this class was generated from the following file: