Skip to content

Commit eae3c0b

Browse files
committed
make path absolute in tests
1 parent c7af85a commit eae3c0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_so3krates.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ def test_so3krates_training():
110110
from mlff.properties import md17_property_keys as prop_keys
111111

112112
import mlff.properties.property_names as pn
113+
import pathlib
113114

114115
data_path = 'test_data/ethanol.npz'
115-
save_path = '_test_train_so3krates'
116+
save_path = pathlib.Path('_test_train_so3krates').expanduser().absolute().resolve()
116117
ckpt_dir = os.path.join(save_path, 'module')
117118
ckpt_dir = create_directory(ckpt_dir, exists_ok=False)
118119

0 commit comments

Comments
 (0)