Measurement#

class ansys.geometry.core.misc.measurements.Measurement(value: ansys.geometry.core.typing.Real | pint.Quantity, unit: pint.Unit, dimensions: pint.Unit)#

Bases: ansys.geometry.core.misc.units.PhysicalQuantity

Provides the PhysicalQuantity subclass for holding a measurement.

Parameters:
valueReal | Quantity

Value of the measurement.

unitUnit

Units for the measurement.

dimensionsUnit

Units for extracting the dimensions of the measurement. If ~pint.Unit.meter is given, the dimension extracted is [length].

Overview#

value

Value of the measurement.

__repr__

Representation of the Measurement class.

__eq__

Equals operator for the Measurement class.

Import detail#

from ansys.geometry.core.misc.measurements import Measurement

Property detail#

property Measurement.value: pint.Quantity#

Value of the measurement.

Method detail#

Measurement.__repr__()#

Representation of the Measurement class.

Measurement.__eq__(other: Measurement) bool#

Equals operator for the Measurement class.