string_to_openmm_unit
- openff.units.openmm.string_to_openmm_unit(unit_string: str) openmm.unit.Unit [source]
Deserializes a openmm.unit.Quantity from a string representation, for example: “kilocalories_per_mole / angstrom ** 2”
- Parameters
unit_string (
dict
) – Serialized representation of a openmm.unit.Quantity.- Returns
output_unit (
openmm.unit.Quantity
) – The deserialized unit from the string- Raises
MissingOpenMMUnitError – if the unit is unavailable in OpenMM.