Skip to content

Commit

Permalink
fix interaction_first for density
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes319 committed Nov 22, 2024
1 parent 2f9a3a5 commit f3c0939
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mace/tools/model_script_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ def _build_model(
args, model_config, model_config_foundation, heads
): # pylint: disable=too-many-return-statements
if args.model == "MACE":
if args.interaction_first not in [
"RealAgnosticInteractionBlock",
"RealAgnosticDensityInteractionBlock",
]:
args.interaction_first = "RealAgnosticInteractionBlock"
return modules.ScaleShiftMACE(
**model_config,
pair_repulsion=args.pair_repulsion,
Expand Down

0 comments on commit f3c0939

Please sign in to comment.