-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into nonbonded-interaction-groups
- Loading branch information
Showing
18 changed files
with
154 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
# Migrate code style to black | ||
4545c577a8dae5827a64594e8bfb100f7e0423c8 | ||
|
||
# Move fe/ to timemachine/fe/ | ||
277cc7463d22af28e5d80478ed3628d0070ffd10 | ||
|
||
# Move ff/ to timemachine/ff/ | ||
f661c86f108acceeefc067c918dc007cd73219e9 | ||
|
||
# Move optimize/ to timemachine/optimize/ | ||
e21cbb8f048840dc24723b60ca3351dbeac8d207 | ||
|
||
# Move md/ to timemachine/md/ | ||
2508c3ff76b9b7c781909626ef4fbb2f9e514f80 | ||
|
||
# Move training/ to attic/training | ||
772c37329dc4f16b238c425a37045b059747c946 | ||
|
||
# Move scripts/ to attic/scripts | ||
1a721dd3f05d6011cf028b0588e066682d38ba59 | ||
|
||
# Move testsystems/ to timemachine/testsystems/ | ||
# and datasets/ to timeamchine/datasets/ | ||
1e414a0e778948441cd3d01e51c62380230c96ea | ||
|
||
# Move parallel/ to timemachine/parallel | ||
4b814f2ee02be99a4ee4a4e8a4b55fc03bc28adf | ||
|
||
# Apply isort fixes | ||
61e068297ce26083b1168535ba908f9987696605 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from timemachine.datasets import fetch_freesolv | ||
|
||
|
||
def test_fetch_freesolv(): | ||
"""assert expected number of molecules loaded -- with unique names and expected property annotations""" | ||
mols = fetch_freesolv() | ||
|
||
# expected number of mols loaded | ||
assert len(mols) == 642 | ||
|
||
# expected mol properties present, interpretable as floats | ||
for mol in mols: | ||
props = mol.GetPropsAsDict() | ||
_, _ = float(props["dG"]), float(props["dG_err"]) | ||
|
||
# unique names | ||
names = [mol.GetProp("_Name") for mol in mols] | ||
assert len(set(names)) == len(names) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from timemachine.datasets import fetch_freesolv | ||
from timemachine.md.enhanced import identify_rotatable_bonds | ||
|
||
|
||
def test_identify_rotatable_bonds_runs_on_freesolv(): | ||
"""pass if no runtime errors are encountered""" | ||
mols = fetch_freesolv() | ||
|
||
for mol in mols: | ||
_ = identify_rotatable_bonds(mol) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from timemachine.datasets.utils import fetch_freesolv | ||
|
||
__all__ = ["fetch_freesolv"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from importlib import resources | ||
from typing import List | ||
|
||
from rdkit import Chem | ||
|
||
|
||
def fetch_freesolv() -> List[Chem.Mol]: | ||
with resources.path("timemachine", "datasets") as datasets_path: | ||
freesolv_path = str(datasets_path / "freesolv" / "freesolv.sdf") | ||
supplier = Chem.SDMolSupplier(freesolv_path, removeHs=False) | ||
return [mol for mol in supplier] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.