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

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

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

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

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

523 of 551 relevant lines covered (94.92%)

0.95 hits per line

Source Files on job python-3.8 - 20920836919.5
  • Tree
  • List 7
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 20920836919
  • d5d5c1c9 on github
  • Prev Job for on refactor-fermi-solver (#20915653445.1)
  • Next Job for on refactor-fermi-solver (#20921444244.1)
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