|
def | __init__ (self, scale=1, *args, **kwargs) |
|
def | from_word (cls, input_word) |
|
def | from_string (cls, input_string) |
|
def | __missing__ (self, key) |
|
def | add (self, key, value) |
|
def | operate (self, items, op=operator.iadd, cleanup=True) |
|
def | __str__ (self) |
|
def | __repr__ (self) |
|
def | __mul__ (self, other) |
|
def | __pow__ (self, other) |
|
def | __truediv__ (self, other) |
|
def | __rtruediv__ (self, other) |
|
The ParserHelper stores in place the product of variables and
their respective exponent and implements the corresponding operations.
◆ from_string()
def SUAVE.Plugins.pint.util.ParserHelper.from_string |
( |
|
cls, |
|
|
|
input_string |
|
) |
| |
Parse linear expression mathematical units and return a quantity object.
◆ from_word()
def SUAVE.Plugins.pint.util.ParserHelper.from_word |
( |
|
cls, |
|
|
|
input_word |
|
) |
| |
Creates a ParserHelper object with a single variable with exponent one.
Equivalent to: ParserHelper({'word': 1})
The documentation for this class was generated from the following file:
- /Users/emiliobotero/Dropbox/SUAVE/SUAVE/trunk/SUAVE/Plugins/pint/util.py