unitsDalton#
This is the base class for Dalton Units.
- class samson.SBQuantity.unitsDalton(*args, **kwargs)#
Bases:
pybind11_object
Units system, serves as a wrapper between SBQuantity and Python
Overloaded function.
__init__(self: samson.SBQuantity.unitsDalton) -> None
Constructs the zero dimensionless unit
__init__(self: samson.SBQuantity.unitsDalton, v: float) -> None
Constructs the dimensionless unit with the given value v
__init__(self: samson.SBQuantity.unitsDalton, value: float, scale: list[int], exponent: list[int]) -> None
Construct the physical unit with value, scale and exponent
__init__(self: samson.SBQuantity.unitsDalton, u: samson.SBQuantity.unitsDalton) -> None
Constructs the physical unit from the given physical unit u
- __add__(*args, **kwargs)#
Overloaded function.
__add__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton
__add__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton
- __eq__(*args, **kwargs)#
Overloaded function.
__eq__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__eq__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__eq__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> bool
- __ge__(*args, **kwargs)#
Overloaded function.
__ge__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__ge__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__ge__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> bool
- __gt__(*args, **kwargs)#
Overloaded function.
__gt__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__gt__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__gt__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> bool
- __iadd__(*args, **kwargs)#
Overloaded function.
__iadd__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton
__iadd__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton
- __imul__(*args, **kwargs)#
Overloaded function.
__imul__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton
__imul__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton
- __isub__(*args, **kwargs)#
Overloaded function.
__isub__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton
__isub__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton
- __itruediv__(*args, **kwargs)#
Overloaded function.
__itruediv__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton
__itruediv__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton
- __le__(*args, **kwargs)#
Overloaded function.
__le__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__le__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__le__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> bool
- __lt__(*args, **kwargs)#
Overloaded function.
__lt__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__lt__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__lt__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> bool
- __mul__(*args, **kwargs)#
Overloaded function.
__mul__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton
__mul__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton
- __ne__(*args, **kwargs)#
Overloaded function.
__ne__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__ne__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool
__ne__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> bool
- __neg__(self: samson.SBQuantity.unitsDalton) samson.SBQuantity.unitsDalton #
- __radd__(self: samson.SBQuantity.unitsDalton, arg0: float) samson.SBQuantity.unitsDalton #
- __rmul__(self: samson.SBQuantity.unitsDalton, arg0: float) samson.SBQuantity.unitsDalton #
- __rsub__(self: samson.SBQuantity.unitsDalton, arg0: float) samson.SBQuantity.unitsDalton #
- __rtruediv__(self: samson.SBQuantity.unitsDalton, arg0: float) samson.SBQuantity.unitsDalton #
- __sub__(*args, **kwargs)#
Overloaded function.
__sub__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton
__sub__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton
- __truediv__(*args, **kwargs)#
Overloaded function.
__truediv__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton
__truediv__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton
- static fromLinearInterpolation(q0: samson.SBQuantity.unitsDalton, q1: samson.SBQuantity.unitsDalton, alpha: float) samson.SBQuantity.unitsDalton #
Returns a linear interpolation between two physical quantities q0 and q1 for a parameter alpha in the closed unit interval [0, 1].
- setZero(self: samson.SBQuantity.unitsDalton) None #
Sets the value to zero
- str(self: samson.SBQuantity.unitsDalton, fullName: bool = False) str #
Converts the physical quantity to a string (with a full unit name when fullName is True.)
- toDebugString(self: samson.SBQuantity.unitsDalton) str #
- property Da#
quantity in dalton
- property auMass#
convert to auMass
- property dalton#
quantity in dalton
- property electronMass#
convert to electronMass
- property g#
convert to gram
- property gDa#
quantity in gigadalton
- property gigadalton#
quantity in gigadalton
- property gram#
convert to gram
- property isDimensionless#
Returns True if the unit is dimensionless
- property kDa#
quantity in kilodalton
- property kg#
convert to kilogram
- property kilodalton#
quantity in kilodalton
- property kilogram#
convert to kilogram
- property mDa#
quantity in megadalton
- property megadalton#
quantity in megadalton
- property sizeOfUnitSystem#
- property value#
Returns value of the unit
- property yg#
convert to yoctogram
- property yoctogram#
convert to yoctogram