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

nomad-coe / nomad-simulations / 19345083530
82%

Build:
DEFAULT BRANCH: develop
Ran 13 Nov 2025 08:36PM UTC
Jobs 3
Files 101
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 2025 08:34PM UTC coverage: 82.379% (-1.2%) from 83.592%
19345083530

push

github

web-flow
Electronic structure navigation (#215)

  Refactor orbital representation with `ElectronicState` schema and gateway architecture

  This refactoring introduces a new `ElectronicState`-based schema to replace the previous `OrbitalsState` system, implementing a cleaner reference architecture that eliminates circular references and
  provides better separation of concerns.

  BREAKING CHANGE: `OrbitalsState` has been removed. Use `ElectronicState` with `basis_orbitals` pattern instead. Property classes no longer maintain `atoms_state_ref`; navigate via
  `entity_ref.get_parent_entity()`.

  Schema Architecture:

  1. Core Schema Design
     - Introduce `ElectronicState` as the primary orbital representation
     - Use `ElectronicState` as a single gateway to access parent entities `AtomsState`/`ModelSystem` via `get_parent_entity()` helper method
     - Reference `ElectronicState` from `ModelSystem` using `basis_orbitals` pattern
     - Make `CoreHole` and `HubbardInteractions` inherit from `ElectronicState`
     - Add comprehensive documentation of design philosophy in `docs/atoms_state/electronic_states.md`

  2. Quantum State Representation
     - Add `BaseSpinOrbitalState` as foundation for orbital states, replacing `OrbitalsState`
     - Introduce `SphericalSymmetryState` (inheriting from `BaseSpinOrbitalState`) for spherically symmetric quantum number handling
     - Implement `_degeneracy` property with j-prioritized calculation in `SphericalSymmetryState`
     - Add comprehensive quantum number validation and mapping
     - Make `j_quantum_number` and `mj_quantum_number` scalars instead of lists
     - Make quantum symbols getters only

  3. Property Class Refactoring
     - Apply consistently across `DOSProfile`, `BaseGreensFunction`, `QuasiparticleWeight`, and `Occupancy`
     - Remove redundant dual-reference patterns, e.g. circular `atoms_state_ref` fields

  4. Bug and Schema Fixes
    - Fix quantum number type definitions (`strictly_positiv... (continued)

277 of 431 new or added lines in 9 files covered. (64.27%)

17 existing lines in 4 files now uncovered.

6961 of 8450 relevant lines covered (82.38%)

2.47 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
84.83
0.06% src/nomad_simulations/schema_packages/model_system.py
10
46.81
-1.94% src/nomad_simulations/schema_packages/properties/spectral_profile.py
42
76.32
-15.74% tests/conftest.py
101
68.52
-22.96% src/nomad_simulations/schema_packages/atoms_state.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
46.81
-1.94% src/nomad_simulations/schema_packages/properties/spectral_profile.py
3
68.52
-22.96% src/nomad_simulations/schema_packages/atoms_state.py
3
91.19
1.77% src/nomad_simulations/schema_packages/model_method.py
10
64.29
-11.9% src/nomad_simulations/schema_packages/utils/utils.py
Jobs
ID Job ID Ran Files Coverage
1 19345083530.1 13 Nov 2025 08:36PM UTC 101
82.38
GitHub Action Run
2 19345083530.2 13 Nov 2025 08:36PM UTC 101
82.38
GitHub Action Run
3 19345083530.3 13 Nov 2025 08:36PM UTC 101
82.38
GitHub Action Run
Source Files on build 19345083530
  • Tree
  • List 101
  • Changed 14
  • Source Changed 0
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 035d19da on github
  • Prev Build on develop (#19328820682)
  • Next Build on develop (#19430284692)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc