Skip to content

Commit

Permalink
Set up versioneer
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwthompson committed Oct 23, 2023
1 parent c2bac8a commit 09a8c5d
Show file tree
Hide file tree
Showing 8 changed files with 1,523 additions and 334 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
ib/_version.py export-subst
ibstore/_version.py export-subst
4 changes: 4 additions & 0 deletions ibstore/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from ibstore._store import MoleculeStore
from ibstore._version import get_versions

__all__ = ("MoleculeStore",)

__version__ = get_versions()["version"]
del get_versions
8 changes: 2 additions & 6 deletions ibstore/_forcefields.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,12 @@ def _espaloma(molecule: Molecule, force_field_name: str) -> openmm.System:
import espaloma as esp

if not force_field_name.startswith("espaloma"):
raise NotImplementedError(
f"Force field {force_field_name} not implemented."
)
raise NotImplementedError(f"Force field {force_field_name} not implemented.")

ff = force_field_name.split("-", 1)[1:2]

if ff == []:
raise ValueError(
"espaloma force field must have an OpenFF force field too"
)
raise ValueError("espaloma force field must have an OpenFF force field too")
else:
ff = ff[0]

Expand Down
Binary file modified ibstore/_tests/data/ch.sqlite
Binary file not shown.
Loading

0 comments on commit 09a8c5d

Please sign in to comment.