Skip to content

Commit aa40129

Browse files
Update mace (#407)
* Update MACE * Pass preprocessing config directly
1 parent 87f66ae commit aa40129

File tree

4 files changed

+4
-14
lines changed

4 files changed

+4
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Tools for machine learnt interatomic potentials
2020

2121
- Python >= 3.10
2222
- ASE >= 3.24
23-
- mace-torch = 0.3.9
23+
- mace-torch = 0.3.10
2424
- chgnet = 0.3.8 (optional)
2525
- matgl = 1.1.3 (optional)
2626
- sevenn = 0.10.3 (optional)

docs/source/getting_started/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Dependencies
99

1010
- Python >= 3.10
1111
- ASE >= 3.24
12-
- mace-torch = 0.3.9
12+
- mace-torch = 0.3.10
1313
- chgnet = 0.3.8 (optional)
1414
- matgl = 1.1.3 (optional)
1515
- sevenn = 0.10.3 (optional)

janus_core/training/preprocess.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,7 @@ def preprocess(
6767
if logger and "foundation_model" in options:
6868
logger.info("Fine tuning model: %s", options["foundation_model"])
6969

70-
# Parse options from config, as MACE cannot read config file yet
71-
args = []
72-
for key, value in options.items():
73-
if isinstance(value, bool):
74-
if value is True:
75-
args.append(f"--{key}")
76-
else:
77-
args.append(f"--{key}")
78-
args.append(f"{value}")
79-
80-
mlip_args = mace_parser().parse_args(args)
70+
mlip_args = mace_parser().parse_args(["--config", str(mlip_config)])
8171

8272
if logger:
8373
logger.info("Starting preprocessing")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ readme = "README.md"
2727
dependencies = [
2828
"ase<4.0,>=3.24",
2929
"codecarbon<3.0.0,>=2.5.0",
30-
"mace-torch==0.3.9",
30+
"mace-torch==0.3.10",
3131
"numpy<2.0.0,>=1.26.4",
3232
"phonopy<3.0.0,>=2.23.1",
3333
"pyyaml<7.0.0,>=6.0.1",

0 commit comments

Comments
 (0)