Skip to content

Commit 3c6e251

Browse files
committed
Fix Wiggle150 data download
1 parent 4f4c948 commit 3c6e251

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

ml_peg/calcs/molecular/Wiggle150/calc_Wiggle150.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
EV_TO_KCAL_PER_MOL = units.mol / units.kcal
2626

2727
# Dataset constants
28-
DATA_ARCHIVE = "Wiggle150"
29-
DATA_SUBDIR = "wiggle150-structures"
30-
DATA_FILENAME = "ct5c00015_si_003.xyz"
3128
MOLECULE_ORDER = ("ado", "bpn", "efa")
3229

3330

@@ -68,8 +65,7 @@ def load_structures(data_dir: Path) -> dict[str, dict[str, Iterable[Atoms]]]:
6865
dict
6966
Mapping of molecule id to ground state and conformers.
7067
"""
71-
dataset_path = data_dir / DATA_FILENAME
72-
structures = read(dataset_path, ":")
68+
structures = read(data_dir / "ct5c00015_si_003.xyz", ":")
7369

7470
molecules: dict[str, dict[str, list[Atoms]]] = {
7571
mol: {"ground": None, "conformers": []} for mol in MOLECULE_ORDER
@@ -193,10 +189,10 @@ def test_wiggle150(mlip: tuple[str, Any]) -> None:
193189
# Download data
194190
data_dir = (
195191
download_s3_data(
196-
key=f"inputs/molecular/{DATA_ARCHIVE}/{DATA_SUBDIR}.zip",
197-
filename=f"{DATA_ARCHIVE}.zip",
192+
key="inputs/molecular/Wiggle150/Wiggle150.zip",
193+
filename="Wiggle150.zip.zip",
198194
)
199-
/ DATA_SUBDIR
195+
/ "wiggle150-structures"
200196
)
201197

202198
conformers = benchmark_wiggle150(calc, model_name, data_dir)

0 commit comments

Comments
 (0)