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

johanjoensson / impurityModel / 33124382216
91%

Build:
DEFAULT BRANCH: master
Ran 27 Aug 2026 11:42PM UTC
Jobs 1
Files 245
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

27 Aug 2026 10:23PM UTC coverage: 90.911% (+0.3%) from 90.6%
33124382216

push

github

johanjoensson
Run spectroscopy at any core edge, and the crystal field on any shell

Two generalisations that both come down to naming a shell instead of assuming
one, plus the defects that surfaced once the assumptions were removed.

Arbitrary core -> valence transitions
  The spectroscopy path ran only the 2p -> 3d L2,3 edge. The shells are now
  named end to end -- slater_condon_Uop and dc_MLFT take explicit lv/lc, the
  transition operators take l_core/l_valence instead of unpacking nBaths.keys(),
  the dN windows and RIXS are told which shell is which, and ImpurityModel
  carries valence_l/core_l rather than having them re-inferred. A K edge
  (1s -> 2p) now parses, builds and solves. dc_MLFT's hardcoded 14/441 and
  (1/15, 3/70) became the spherical averages they always were.

Octahedral crystal field for any shell, not just d
  get_CF_hamiltonian followed a fixed e_g/t_2g splitting. It now follows the
  valence shell's own O_h level structure, tabulated in atomic_physics: one
  level for s and p, two for d (10Dq), three for f. An f shell needs TWO
  independent splittings -- the O_h invariants of l=3 span a two-dimensional
  space, so one number cannot place three levels. From l=5 up an irrep repeats
  and the point group no longer fixes the basis, which is refused with that
  reason. The l=3 cubic harmonics are exact; the level table is verified twice
  over, against an octahedral point-charge field and against the Stevens
  operators.

  n_bath = 0 is now supported: the Hubbard-I approximation, a correlated shell
  with no hybridization. The shell is named by the caller because "the shell
  that has a bath" cannot name one that has none. Bath blocks are all-or-nothing
  and an absent one drops its parameters instead of demanding values nothing
  reads.

Shell roles no longer over-constrain
  role = "core"/"valence" describes the Hamiltonian, which is meaningful for any
  pair of shells. |l_core - l_valence| = 1 constrains a transition operator, so
  it is ... (continued)

848 of 875 new or added lines in 24 files covered. (96.91%)

174 existing lines in 12 files now uncovered.

30427 of 33469 relevant lines covered (90.91%)

0.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
9
83.08
68.79% src/impurityModel/ed/get_spectra.py
5
97.56
-0.18% src/impurityModel/ed/atomic_physics.py
5
86.56
6.36% src/impurityModel/ed/spectra.py
4
95.52
5.33% src/impurityModel/ed/hamiltonian_io.py
2
73.37
src/impurityModel/inputformat/build.py
1
92.0
src/impurityModel/inputformat/capabilities.py
1
55.42
0.0% src/impurityModel/test/support/_nio_workload.py

Coverage Regressions

Lines Coverage ∆ File
35
86.56
6.36% src/impurityModel/ed/spectra.py
29
41.96
-1.03% src/impurityModel/scripts/selfenergy.py
20
72.15
-3.52% src/impurityModel/scripts/spectra.py
18
93.05
0.25% src/impurityModel/ed/h0_format.py
18
56.9
-4.21% src/impurityModel/scripts/susceptibility.py
13
74.48
0.0% src/impurityModel/ed/susceptibility.py
12
0.0
0.0% src/impurityModel/api.py
12
83.08
68.79% src/impurityModel/ed/get_spectra.py
6
95.52
5.33% src/impurityModel/ed/hamiltonian_io.py
6
96.67
1.07% src/impurityModel/ed/model.py
3
89.29
0.4% src/impurityModel/scripts/cli.py
2
98.31
0.05% src/impurityModel/scripts/plot_spectra.py
Jobs
ID Job ID Ran Files Coverage
1 33124382216.1 27 Aug 2026 11:42PM UTC 245
90.91
GitHub Action Run
Source Files on build 33124382216
  • Tree
  • List 245
  • Changed 27
  • Source Changed 25
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33124382216
  • 2fcd8350 on github
  • Prev Build on master (#32501626163)
  • Next Build on master (#33170189467)
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