@patch
def to_standard(self: Q): return 1
core
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
Unit
Unit ()
Default Units
= Q(0.214, Unit.MOLE) moles
moles
moles.__dict__
{'_magnitude': 0.214,
'_units': <UnitsContainer({'mole': 1})>,
'_Quantity__used': False,
'_Quantity__handling': None}
moles.dimensionality
<UnitsContainer({'[substance]': 1})>
= Q(0.235, Unit.SPECIFIC_HEAT) specific_heat
specific_heat.ito_reduced_units()
= Q('3.21 kilogram') m
m
@ureg.check('[length]')
def foo(length):
return length
'10 meter') foo(
'10 meter'
@ureg.wraps((ureg.meter, ureg.gram), (ureg.meter, ureg.kilogram))
def mypp(length, mass):
return length, mass
'10 kilometer', '1 kilogram') mypp(
(10000.0 <Unit('meter')>, 1 <Unit('gram')>)
@ureg.check('[mass]')
@ureg.wraps(None, None)
def set_mass(mass):
return mass
'20 kilogram') set_mass(
'20 kilogram'
@ureg.check('[mass]')
@ureg.wraps(ureg.gram, ureg.kilogram)
def set_mass(mass):
return mass
'20 kilogram') set_mass(
Data
Object
Object ()
Initialize self. See help(type(self)) for accurate signature.
PropertyData
= PropertyData({'0': {'mass': 2, 'object': Object()}}) c
'0'] c[
{'mass': 2, 'object': <__main__.Object>}
'1'] = {'mass': 2.1, 'object': 'XXX'} c[
Proprety
PropertyObservable
PropertyObservable (compound)
Initialize self. See help(type(self)) for accurate signature.
Mass
Mass (compound)
Initialize self. See help(type(self)) for accurate signature.
Mass.set_mass
Mass.set_mass ()
Mole
Mole (compound)
Initialize self. See help(type(self)) for accurate signature.
Pressure
Pressure (compound)
Initialize self. See help(type(self)) for accurate signature.
Volume
Volume (compound)
Initialize self. See help(type(self)) for accurate signature.
Temperature
Temperature (compound)
Initialize self. See help(type(self)) for accurate signature.
Law
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.
System
System ()
Initialize self. See help(type(self)) for accurate signature.