- openff.units.openmm.to_openmm(quantity: Quantity) openmm_unit.Quantity
Convert an OpenFF
Quantityto an OpenMM
openmm.unit.quantity.Quantityfrom OpenMM and
openff.units.Quantityfrom this package both represent a numerical value with units. The units available in the two packages differ; when a unit is missing from the target package, the resulting quantity will be in base units (kg/m/s/A/K/mole), which are shared between both packages. This may cause the resulting value to be slightly different to the input due to the limited precision of floating point numbers.