SUAVE  2.5.2
An Aerospace Vehicle Environment for Designing Future Aircraft
SUAVE.Plugins.pint.util.ParserHelper Class Reference
Inheritance diagram for SUAVE.Plugins.pint.util.ParserHelper:

Public Member Functions

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)

Public Attributes


Detailed Description

The ParserHelper stores in place the product of variables and
their respective exponent and implements the corresponding operations.

Member Function Documentation

◆ from_string()

def SUAVE.Plugins.pint.util.ParserHelper.from_string (   cls,
Parse linear expression mathematical units and return a quantity object.

◆ from_word()

def SUAVE.Plugins.pint.util.ParserHelper.from_word (   cls,
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: