• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ACEsuit / mace / 43701686870
75%

Build:
DEFAULT BRANCH: develop
Ran 15 Nov 2026 10:48AM UTC
Jobs 1
Files 71
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Nov 2026 04:12PM UTC coverage: 75.129% (+0.01%) from 75.117%
43701686870

push

github

web-flow
Magnetic MACE: make the energy continuous at r_max (#1806)

* Make the magnetic models' energy continuous at the cutoff

The radial weights of both magnetic interaction blocks are an MLP of the
edge basis concatenated with the sender's moment features. The edge basis
vanishes at r_max, the moment features do not, so a neighbour's message
stays finite until it leaves the neighbour list and the energy steps there.

Multiply the convolution weights by the polynomial envelope, as the
non-magnetic blocks do. The moment-space weights need no envelope: that
tensor product is linear in the first message, which now vanishes at r_max.

New models do this by default (smooth_cutoff=True). Checkpoints saved
before have no smooth_cutoff attribute and keep computing what they were
trained as, and extract_config_mace_model carries the flag through model
conversions. Parameter names are unchanged.

* Apply the cutoff envelope to the magnetic blocks' edge density

As the non-magnetic density blocks do when they are given the cutoff. The
edge density already vanished at r_max, through the envelope in the edge
basis, so this matches their convention rather than removing a second step.

* Apply the magnetic cutoff envelope once, outside the radial basis

With smooth_cutoff the radial basis is now built with apply_cutoff=False and
hands its envelope to the magnetic interactions, which apply it once, to the
convolution weights and to the edge density. Before, those weights and the
density were also computed from a radial basis that already carried the
envelope, so it reached them twice. The moment-space weights stay without it:
their tensor product is linear in the convolution's output, which carries it.

With smooth_cutoff=False, and in checkpoints saved before the flag existed,
the envelope stays in the radial basis whatever apply_cutoff says and no
envelope reaches the interactions, as before. The forward takes the envelope
from the radial embedding, as MACE does, so a c... (continued)

9313 of 12396 relevant lines covered (75.13%)

0.75 hits per line

Coverage Regressions

Lines Coverage ∆ File
17
92.34
0.04% modules/blocks.py
13
89.8
0.02% modules/extensions.py
2
83.67
-0.68% cli/visualise_train.py
Jobs
ID Job ID Ran Files Coverage
1 43701686870.1 15 Nov 2026 10:48AM UTC 71
75.13
GitHub Action Run
Source Files on build 43701686870
  • Tree
  • List 71
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43701686870
  • b3b56ba0 on github
  • Prev Build on develop (#43406177773)
  • Next Build on develop (#43846604369)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc