Skip to content

Commit

Permalink
Merge pull request #25 from openforcefield/openmm-per-mol
Browse files Browse the repository at this point in the history
Use default string formatting, add more units for OpenMM compatibility
  • Loading branch information
mattwthompson authored May 2, 2022
2 parents ecf544a + a039f88 commit 132c545
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions openff/units/data/defaults.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ joule_per_mole = joule / mol
calories_per_mole = calorie / mol
joules_per_mole = joule / mol

# OpenMM compatibility
kilocalorie_per_mole = kilocalorie / mol
kilojoule_per_mole = kilojoule / mol
kilocalories_per_mole = kilocalorie / mol
kilojoules_per_mole = kilojoule / mol

# Momentum
[momentum] = [length] * [mass] / [time]

Expand Down
1 change: 0 additions & 1 deletion openff/units/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def _dask_finalize(results, func, args, units):
DEFAULT_UNIT_REGISTRY.Measurement = Measurement

pint.set_application_registry(DEFAULT_UNIT_REGISTRY)
DEFAULT_UNIT_REGISTRY.default_format = "~"

with warnings.catch_warnings():
warnings.simplefilter("ignore")
Expand Down

0 comments on commit 132c545

Please sign in to comment.