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

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

Build:
Build:
LAST BUILD BRANCH: 2.1.0
DEFAULT BRANCH: main
Ran 12 Jan 2026 01:20PM 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

12 Jan 2026 01:19PM UTC coverage: 94.918% (+0.1%) from 94.784%
20920836919

Pull #54

github

bjmorgan
Refactor get_sc_fermi to use scipy.optimize.brentq

Replaced custom bisection-like solver with scipy's Brent's method.

Benefits:
- 40x faster (2.6ms vs 102ms per solve)
- Simpler, more robust code
- Well-tested implementation

Changes:
- n_trial_steps is deprecated (emits DeprecationWarning if set)
- convergence_tolerance is now optional and controls Fermi energy
  precision (xtol), not charge neutrality residual
- Both parameters default to scipy's defaults if not specified
- Fixed numerical instability in charge state concentration scaling
  using logsumexp

Closes #52
Closes #53
Pull Request #54: Refactor get_sc_fermi to use scipy.optimize.brentq

31 of 35 new or added lines in 2 files covered. (88.57%)

13 existing lines in 3 files now uncovered.

523 of 551 relevant lines covered (94.92%)

5.65 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
88.8
-0.17% py_sc_fermi/defect_system.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
98.48
0.0% py_sc_fermi/defect_charge_state.py
1
99.21
0.04% py_sc_fermi/defect_species.py
11
88.8
-0.17% py_sc_fermi/defect_system.py
Jobs
ID Job ID Ran Files Coverage
1 python-3.10 - 20920836919.1 12 Jan 2026 01:20PM UTC 7
94.87
GitHub Action Run
2 python-3.9 - 20920836919.2 12 Jan 2026 01:20PM UTC 7
94.87
GitHub Action Run
3 python-3.12 - 20920836919.3 12 Jan 2026 01:20PM UTC 7
94.87
GitHub Action Run
4 python-3.13 - 20920836919.4 12 Jan 2026 01:20PM UTC 7
94.87
GitHub Action Run
5 python-3.8 - 20920836919.5 12 Jan 2026 01:20PM UTC 7
94.92
GitHub Action Run
6 python-3.11 - 20920836919.6 12 Jan 2026 01:20PM UTC 7
94.87
GitHub Action Run
Source Files on build 20920836919
  • Tree
  • List 7
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20920836919
  • Pull Request #54
  • PR Base - main (#20915653445)
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