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

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

Build:
Build:
LAST BUILD BRANCH: 2.1.0
DEFAULT BRANCH: main
Ran 12 Jan 2026 12:49PM 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 12:48PM UTC coverage: 93.818% (-0.09%) from 93.911%
20919937437

push

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

The n_trial_steps parameter is deprecated and will be removed in a
future version. Brent's method converges in ~30 iterations.

Also includes fix for charge state concentration scaling (#53) which
was exposed by the new solver's stricter NaN handling.

Closes #52
Closes #53

2 of 3 new or added lines in 1 file covered. (66.67%)

13 existing lines in 2 files now uncovered.

516 of 550 relevant lines covered (93.82%)

5.58 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
83.74
-0.69% py_sc_fermi/defect_system.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
99.21
0.05% py_sc_fermi/defect_species.py
12
83.74
-0.69% py_sc_fermi/defect_system.py
Jobs
ID Job ID Ran Files Coverage
1 python-3.13 - 20919937437.1 12 Jan 2026 12:49PM UTC 7
93.76
GitHub Action Run
2 python-3.8 - 20919937437.2 12 Jan 2026 12:49PM UTC 7
93.82
GitHub Action Run
3 python-3.10 - 20919937437.3 12 Jan 2026 12:49PM UTC 7
93.76
GitHub Action Run
4 python-3.9 - 20919937437.4 12 Jan 2026 12:49PM UTC 7
93.76
GitHub Action Run
5 python-3.12 - 20919937437.5 12 Jan 2026 12:49PM UTC 7
93.76
GitHub Action Run
6 python-3.11 - 20919937437.6 12 Jan 2026 12:49PM UTC 7
93.76
GitHub Action Run
Source Files on build 20919937437
  • 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 #20919937437
  • bd2c489b on github
  • Prev Build on refactor-fermi-solver (#20918983072)
  • Next Build on refactor-fermi-solver (#20920265121)
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