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

ACEsuit / mace
74%

Build:
DEFAULT BRANCH: develop
Repo Added 07 Aug 2026 04:10PM UTC
Token nRR1MB0Jx3z6n7H7KMsoqIf1dxV1cFl8h regen
Build 10 Last
Files 68
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

LAST BUILD ON BRANCH develop
branch: develop
CHANGE BRANCH
x
Reset
Sync Branches
  • develop

31 Aug 2026 06:58AM UTC coverage: 74.429% (+0.02%) from 74.405%
33375143140

push

github

web-flow
Mask the stress of a graph with no periodic direction (#1684)

* Mask the stress of a graph with no periodic direction

matscipy cannot bin atoms along a non-periodic axis, so get_neighborhood
returns a padding box for a fully aperiodic system and the models divide
the strain derivative by that invented volume. The result is not a stress:
on a water molecule the energy and the virial are bit-identical at every
box size, while the reported value tracks 1/V exactly, from 3.1e-4 with
today's extent-based box to 4.9e-10 at L=1000.

Enlarging the cell therefore only dilutes the artifact, and #1533 shrank
the box for a reason: the old (max|pos|+1)*5*cutoff box blew PolarMACE's
k-space electrostatics into an OOM. Mask per graph on pbc.any() instead,
so a batch mixing molecules with crystals keeps the crystals' stress, as
does a slab that is periodic in two directions.

The masked graphs divide by one rather than by zero. Masking after the
division is not enough on its own, since a nan still routes back through
it on the backward pass. The existing abs(stress) < 1e10 clamp was doing
this job by accident and only for a fully degenerate cell; it stays as
the near-degenerate backstop.

pbc reaches the models through GraphContext, and is None under LAMMPS,
where the cell is always periodic and only the volume is checked. The
lookup is spelled with `in` because Batch implements __contains__ but
not .get, and EnergyDipolesMACE's callers pass a Batch.

* Pass pbc at PolarMACE's atomic stress call

PolarMACE already passed pbc into get_outputs, so its total stress was
masked, but its atomic stresses reach the same helper through a
function-local `import get_atomic_virials_stresses as _gav` and were left
on the default pbc=None. With that default only a degenerate cell is
dropped, so an aperiodic graph kept reporting the padding box per atom
while the total was zero, and the atomic stresses no longer summed to the
total.

The alias is why the first pass missed it: gre... (continued)

8959 of 12037 relevant lines covered (74.43%)

0.74 hits per line

Relevant lines Covered
Build:
Build:
12037 RELEVANT LINES 8959 COVERED LINES
0.74 HITS PER LINE
Source Files on develop
  • Tree
  • List 68
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
33375143140 develop Mask the stress of a graph with no periodic direction (#1684) * Mask the stress of a graph with no periodic direction matscipy cannot bin atoms along a non-periodic axis, so get_neighborhood returns a padding box for a fully aperiodic system and... push 31 Aug 2026 09:44AM UTC web-flow github
74.43
33301854027 develop add 'dipole' to implemented properties of polarMACE calculator (#1700) Co-authored-by: Arn <demoora@mpip-mainz.mpg.de> push 30 Aug 2026 09:31AM UTC web-flow github
74.41
33245391977 develop add 'dipole' to implemented properties of polarMACE calculator (#1700) Co-authored-by: Arn <demoora@mpip-mainz.mpg.de> push 29 Aug 2026 10:21AM UTC web-flow github
74.41
33180980712 develop add 'dipole' to implemented properties of polarMACE calculator (#1700) Co-authored-by: Arn <demoora@mpip-mainz.mpg.de> push 28 Aug 2026 03:36PM UTC web-flow github
74.41
33075168246 develop add 'dipole' to implemented properties of polarMACE calculator (#1700) Co-authored-by: Arn <demoora@mpip-mainz.mpg.de> push 27 Aug 2026 02:07PM UTC web-flow github
74.41
32927316400 develop Upload code coverage to coveralls (#1631) * Upload coverage to coveralls * Add coverage to README * Update links * Address review on the Coveralls upload Point the README badge's link at develop, the branch the badge measures. Upload from th... push 26 Aug 2026 04:32AM UTC web-flow github
74.41
32805683821 develop Upload code coverage to coveralls (#1631) * Upload coverage to coveralls * Add coverage to README * Update links * Address review on the Coveralls upload Point the README badge's link at develop, the branch the badge measures. Upload from th... push 25 Aug 2026 04:23AM UTC web-flow github
74.41
32615802797 develop Upload code coverage to coveralls (#1631) * Upload coverage to coveralls * Add coverage to README * Update links * Address review on the Coveralls upload Point the README badge's link at develop, the branch the badge measures. Upload from th... push 23 Aug 2026 04:28AM UTC web-flow github
74.41
32549021169 develop Upload code coverage to coveralls (#1631) * Upload coverage to coveralls * Add coverage to README * Update links * Address review on the Coveralls upload Point the README badge's link at develop, the branch the badge measures. Upload from th... push 22 Aug 2026 04:18AM UTC web-flow github
74.41
31194820005 develop Merge d901e43b2 into 91df5a203 Pull #1631 07 Aug 2026 04:10PM UTC web-flow github
38.66
See All Builds (10)

Badge your Repo: mace

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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