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.

  1. __init__(self: samson.SBQuantity.unitsDalton) -> None

Constructs the zero dimensionless unit

  1. __init__(self: samson.SBQuantity.unitsDalton, v: float) -> None

Constructs the dimensionless unit with the given value v

  1. __init__(self: samson.SBQuantity.unitsDalton, value: float, scale: list[int], exponent: list[int]) -> None

Construct the physical unit with value, scale and exponent

  1. __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.

  1. __add__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton

  2. __add__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton

__eq__(*args, **kwargs)#

Overloaded function.

  1. __eq__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  2. __eq__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  3. __eq__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> bool

__ge__(*args, **kwargs)#

Overloaded function.

  1. __ge__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  2. __ge__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  3. __ge__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> bool

__gt__(*args, **kwargs)#

Overloaded function.

  1. __gt__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  2. __gt__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  3. __gt__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> bool

__iadd__(*args, **kwargs)#

Overloaded function.

  1. __iadd__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton

  2. __iadd__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton

__imul__(*args, **kwargs)#

Overloaded function.

  1. __imul__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton

  2. __imul__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton

__isub__(*args, **kwargs)#

Overloaded function.

  1. __isub__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton

  2. __isub__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton

__itruediv__(*args, **kwargs)#

Overloaded function.

  1. __itruediv__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton

  2. __itruediv__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton

__le__(*args, **kwargs)#

Overloaded function.

  1. __le__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  2. __le__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  3. __le__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> bool

__lt__(*args, **kwargs)#

Overloaded function.

  1. __lt__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  2. __lt__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  3. __lt__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> bool

__mul__(*args, **kwargs)#

Overloaded function.

  1. __mul__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton

  2. __mul__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton

__ne__(*args, **kwargs)#

Overloaded function.

  1. __ne__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  2. __ne__(self: samson.SBQuantity.unitsDalton, arg0: float) -> bool

  3. __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.

  1. __sub__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton

  2. __sub__(self: samson.SBQuantity.unitsDalton, arg0: samson.SBQuantity.unitsDalton) -> samson.SBQuantity.unitsDalton

__truediv__(*args, **kwargs)#

Overloaded function.

  1. __truediv__(self: samson.SBQuantity.unitsDalton, arg0: float) -> samson.SBQuantity.unitsDalton

  2. __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