PyPO User Manual
PyPO.Enums.Unit Class Reference

A custom float with extra metadata that is useful for units. More...

Inheritance diagram for PyPO.Enums.Unit:

Public Member Functions

def __new__ (self, value, name, dimension)
 
def __init__ (self, value, name, dimension)
 
def value (self)
 
def __str__ (self)
 
def __repr__ (self)
 

Public Attributes

 name
 
 dimension
 

Detailed Description

A custom float with extra metadata that is useful for units.

This subclass of float adds meta data for the name of the unit and the dimension that it applies to.


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