We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0560f82 commit 083cb98Copy full SHA for 083cb98
1 file changed
examples/calculations/submit_train.py
@@ -14,13 +14,11 @@
14
metadata = {"options": {"resources": {"num_machines": 1}}}
15
code = load_code("janus@localhost")
16
17
+ROOT_DIR = Path(__file__).resolve().parents[2]
18
+
19
# All the other parameters we want them from the config file
20
# We want to pass it as a AiiDA data type for the provenance
-mlip_config = JanusConfigfile(
- Path("~/aiida-mlip/tests/calculations/configs/mlip_train.yml")
21
- .expanduser()
22
- .resolve()
23
-)
+mlip_config = JanusConfigfile(ROOT_DIR / "tests/calculations/configs/mlip_train.yml")
24
25
# Define calculation to run
26
TrainCalc = CalculationFactory("mlip.train")
0 commit comments