rmgpy.quantity.Quantity

rmgpy.quantity.Quantity(*args, **kwargs)

Create a ScalarQuantity or ArrayQuantity object for a given physical quantity. The physical quantity can be specified in several ways:

  • A scalar-like or array-like value (for a dimensionless quantity)

  • An array of arguments (including keyword arguments) giving some or all of the value, units, uncertainty, and/or uncertainty_type.

  • A tuple of the form (value,), (value,units), (value,units,uncertainty), or (value,units,uncertainty_type,uncertainty)

  • An existing ScalarQuantity or ArrayQuantity object, for which a copy is made