AFL.automation.shared.units#

Functions

enforce_units(value, unit_type)

Ensure that a number has units and convert to the default_units

get_unit_type(value)

has_units(value)

is_concentration(value)

is_density(value)

is_mass(value)

is_molarity(value)

is_volume(value)

AFL.automation.shared.units.has_units(value)[source]#
AFL.automation.shared.units.is_volume(value)[source]#
AFL.automation.shared.units.is_molarity(value)[source]#
AFL.automation.shared.units.is_mass(value)[source]#
AFL.automation.shared.units.is_density(value)[source]#
AFL.automation.shared.units.is_concentration(value)[source]#
AFL.automation.shared.units.get_unit_type(value)[source]#
AFL.automation.shared.units.enforce_units(value, unit_type)[source]#

Ensure that a number has units and convert to the default_units