pyunitwizard.unit#

pyunitwizard.unit(unit, form=None, parser=None)[source]#

Returns a unit.

Parameters:
  • unit (str) – Name of the unit (i.e kcal/mol).

  • form ({"unyt", "pint", "openmm.unit", "astropy.units", "string"}, optional) – The form of the unit. This is the type that will be returned

  • parser ({"unyt", "pint", "openmm.unit", "astropy.units"}, optional) – The parser to use.

Returns:

The unit.

Return type:

Unitlike