Skip to content

Commit

Permalink
fixed function namspace
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemhenry committed Jul 14, 2023
1 parent 3d3149f commit a0a6a64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions espaloma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from .graphs.graph import Graph
from .metrics import GraphMetric
from .mm.geometry import *
from .utils.model_fetch import get_model, get_model_path

# Add imports here
# import espaloma
Expand Down
5 changes: 2 additions & 3 deletions espaloma/utils/tests/test_model_fetch.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import espaloma as esp
import torch
from espaloma.utils.model_fetch import get_model, get_model_path
from openff.toolkit.topology import Molecule


def test_get_model_path(tmp_path):
model_dir = tmp_path / "latest"
model_path = get_model_path(model_dir=model_dir, disable_progress_bar=True)
model_path = esp.get_model_path(model_dir=model_dir, disable_progress_bar=True)

molecule = Molecule.from_smiles("CN1C=NC2=C1C(=O)N(C(=O)N2C)C")
molecule_graph = esp.Graph(molecule)
Expand All @@ -19,7 +18,7 @@ def test_get_model_path(tmp_path):
def test_get_model(tmp_path):
model_dir = tmp_path / "zoo"

espaloma_model = get_model()
espaloma_model = esp.get_model()

molecule = Molecule.from_smiles("CN1C=NC2=C1C(=O)N(C(=O)N2C)C")
molecule_graph = esp.Graph(molecule)
Expand Down

0 comments on commit a0a6a64

Please sign in to comment.