PointOrigin

Labs

class PointOrigin

Description

Marker type for quantity origins.

Inheritance:

Members defined in PointOrigin (5 members)

quantity

R

The quantity of this origin.

__repr__

__str__

natural

Construct a new origin offset away from natural origin.

relative

Construct a point origin relative to origin by some offset.

Attributes

property quantity: syside.experimental.units.Quantity

The quantity of this origin.

Methods

__repr__() → str
__str__() → str
static natural(arg: syside.experimental.units.Quantity, /) → syside.experimental.units.PointOrigin

Construct a new origin offset away from natural origin.

Note that offset is relative to the unit’s absolute zero! For example, 0 ℃ means an origin of 273.15 K.

static relative(arg0: syside.experimental.units.PointOrigin, arg1: syside.experimental.units.QuantityDelta, /) → syside.experimental.units.PointOrigin

Construct a point origin relative to origin by some offset.

Raises ValueError if offset cannot be assigned to the quantity of origin, i.e. offset is not implicitly convertible to the quantity of origin.