core

Fill in a module description here

source

Event

 Event (iterable=())

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.

Unit


source

Unit

 Unit ()

Default Units

@patch
def to_standard(self: Q): return 1
moles = Q(0.214, Unit.MOLE)
moles
0.214 mole
moles.__dict__
{'_magnitude': 0.214,
 '_units': <UnitsContainer({'mole': 1})>,
 '_Quantity__used': False,
 '_Quantity__handling': None}
moles.dimensionality
<UnitsContainer({'[substance]': 1})>
specific_heat = Q(0.235, Unit.SPECIFIC_HEAT)
specific_heat.ito_reduced_units()
m = Q('3.21 kilogram')
m
3.21 kilogram
@ureg.check('[length]')
def foo(length):
    return length
foo('10 meter')
'10 meter'
@ureg.wraps((ureg.meter, ureg.gram), (ureg.meter, ureg.kilogram))
def mypp(length, mass):
    return length, mass
mypp('10 kilometer', '1 kilogram')
(10000.0 <Unit('meter')>, 1 <Unit('gram')>)
@ureg.check('[mass]')
@ureg.wraps(None, None)
def set_mass(mass):
    return mass
set_mass('20 kilogram')
'20 kilogram'
@ureg.check('[mass]')
@ureg.wraps(ureg.gram, ureg.kilogram)
def set_mass(mass):
    return mass
set_mass('20 kilogram')
20 gram

Data


source

Object

 Object ()

Initialize self. See help(type(self)) for accurate signature.


source

PropertyData

c = PropertyData({'0': {'mass': 2, 'object': Object()}})
c['0']
{'mass': 2, 'object': <__main__.Object>}
c['1'] = {'mass': 2.1, 'object': 'XXX'}

Proprety


source

PropertyObservable

 PropertyObservable (compound)

Initialize self. See help(type(self)) for accurate signature.


source

Mass

 Mass (compound)

Initialize self. See help(type(self)) for accurate signature.


source

Mass.set_mass

 Mass.set_mass ()

source

Mole

 Mole (compound)

Initialize self. See help(type(self)) for accurate signature.


source

Pressure

 Pressure (compound)

Initialize self. See help(type(self)) for accurate signature.


source

Volume

 Volume (compound)

Initialize self. See help(type(self)) for accurate signature.


source

Temperature

 Temperature (compound)

Initialize self. See help(type(self)) for accurate signature.

Law


source

Law

 Law ()

Initialize self. See help(type(self)) for accurate signature.

class Law:
    def __init__(self):
        self._properties: dict = []
        self._laws: dict = []
    
    def relation(self):
        #self._laws['x']
        pass

System

System is an mediator that compounds and reactions communicate through each others.


source

System

 System ()

Initialize self. See help(type(self)) for accurate signature.