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

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

Build:
Build:
LAST BUILD BRANCH: 2.1.0
DEFAULT BRANCH: main
Ran 10 Jan 2026 04:41PM UTC
Files 7
Run time 0s
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.238% (+0.4%) from 94.794%
20881271419.4

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.

540 of 567 relevant lines covered (95.24%)

0.95 hits per line

Source Files on job 20881271419.4
  • Tree
  • List 7
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20881271419
  • abcd661f on github
  • Prev Job for on warnings_bugfix (#12788135356.1)
  • Next Job for on warnings_bugfix (#20882479974.4)
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