Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
FNTwin committed Jun 23, 2024
2 parents 4bbc4d2 + f8a8aab commit a243a95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: ["ubuntu-latest"]

runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion openqdc/datasets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def force_unit(self):
units = self.__forces_unit__.split("/")
if len(units) > 2:
units = ["/".join(units[:2]), units[-1]]
return ForceTypeConversion(*units)
return ForceTypeConversion(tuple(units)) # < 3.12 compatibility

@property
def root(self):
Expand Down
4 changes: 2 additions & 2 deletions openqdc/utils/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ def get_conversion(in_unit: str, out_unit: str):
Conversion("ev", "kcal/mol", lambda x: x * 23.0605)
Conversion("ev", "hartree", lambda x: x * 0.0367493)
Conversion("ev", "kj/mol", lambda x: x * 96.4853)
Conversion("mev", "ev", lambda x: x * 1000.0)
Conversion("ev", "mev", lambda x: x * 0.0001)
Conversion("ev", "mev", lambda x: x * 1000.0)
Conversion("mev", "ev", lambda x: x * 0.0001)
Conversion("ev", "ryd", lambda x: x * 0.07349864)

# kcal/mol conversion
Expand Down

0 comments on commit a243a95

Please sign in to comment.