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

bjmorgan / py-sc-fermi / 20881271419
95%
main: 95%

Build:
Build:
LAST BUILD BRANCH: 2.1.0
DEFAULT BRANCH: main
Ran 10 Jan 2026 04:41PM UTC
Jobs 6
Files 7
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

10 Jan 2026 04:40PM UTC coverage: 95.304% (+0.5%) from 94.831%
20881271419

push

github

bjmorgan
Fix global warning suppression on import (#50)

Importing py_sc_fermi previously replaced warnings.showwarning globally,
silencing all non-RuntimeWarning warnings and affecting any code that
imported the package.

Replace the global override with a decorator-based approach that converts
numpy overflow warnings to custom warning classes at the source:

- Add py_sc_fermi/warnings.py with PySCFermiWarning, DOSOverflowWarning,
  DefectOverflowWarning and catches_numpy_overflow decorator
- Apply decorator to DOS.carrier_concentrations and
  DefectChargeState.get_concentration
- Remove CustomWarningManager class and global warnings.showwarning override
- Scope warning deduplication in get_sc_fermi to PySCFermiWarning only

Custom warnings now integrate properly with Python's warning system and
can be filtered using standard mechanisms.

28 of 28 new or added lines in 4 files covered. (100.0%)

548 of 575 relevant lines covered (95.3%)

5.65 hits per line

Jobs
ID Job ID Ran Files Coverage
1 20881271419.1 10 Jan 2026 04:41PM UTC 7
95.24
GitHub Action Run
2 20881271419.2 10 Jan 2026 04:41PM UTC 7
95.24
GitHub Action Run
3 20881271419.3 10 Jan 2026 04:41PM UTC 7
95.24
GitHub Action Run
4 20881271419.4 10 Jan 2026 04:41PM UTC 7
95.24
GitHub Action Run
5 20881271419.5 10 Jan 2026 04:41PM UTC 7
95.3
GitHub Action Run
6 20881271419.6 10 Jan 2026 04:41PM UTC 7
95.24
GitHub Action Run
Source Files on build 20881271419
  • Tree
  • List 7
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • abcd661f on github
  • Prev Build on main (#12788135356)
  • Next Build on warnings_bugfix (#20882479974)
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