Skip to content

Commit

Permalink
use best model dir directly in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
M-R-Schaefer committed Nov 10, 2023
1 parent db80629 commit a2c92c9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/integration_tests/md/test_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,8 @@ def test_run_md(get_tmp_path):
)

ckpt = {"model": {"params": params}, "epoch": 0}
best_dir = os.path.join(
model_config.data.directory, model_config.data.experiment, "best"
)
checkpoints.save_checkpoint(
ckpt_dir=best_dir,
ckpt_dir=model_config.data.best_model_path,
target=ckpt,
step=0,
overwrite=True,
Expand Down Expand Up @@ -147,9 +144,8 @@ def test_ase_calc(get_tmp_path):
)
ckpt = {"model": {"params": params}, "epoch": 0}

best_dir = model_config.data.best_model_path
checkpoints.save_checkpoint(
ckpt_dir=best_dir,
ckpt_dir=model_config.data.best_model_path,
target=ckpt,
step=0,
overwrite=True,
Expand Down

0 comments on commit a2c92c9

Please sign in to comment.