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

bjmorgan / py-sc-fermi
95%

Build:
DEFAULT BRANCH: main
Repo Added 17 Oct 2022 11:39AM UTC
Files 7
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

LAST BUILD ON BRANCH main
branch: main
CHANGE BRANCH
x
Reset
  • main
  • 2.1.0
  • DOS_accuracy
  • bandgap
  • docs
  • docs_fix
  • fix-charge-state-scaling
  • jsonable
  • no-implicit-optional
  • paper_edits
  • proof_editing
  • proofs
  • pyproject
  • refactor-fermi-solver
  • refs/pull/51/merge
  • refs/tags/0.3.0
  • refs/tags/0.3.1
  • refs/tags/1.0.0
  • refs/tags/1.0.1
  • refs/tags/1.0.2
  • refs/tags/1.1.0
  • refs/tags/2.0.0
  • refs/tags/2.0.1
  • refs/tags/2.0.2
  • refs/tags/2.0.3
  • refs/tags/2.0.4
  • site_percentages
  • spinpol
  • warning_handling
  • warnings_bugfix

20 May 2026 03:57PM UTC coverage: 95.109% (+0.009%) from 95.1%
26174243092

push

github

web-flow
Make DOS integrations more robust to noise / band-edge effects (#55)

Integrate carrier densities from edos[0] to mid-gap (rather than
terminating at the VBM/CBM indices), so the result is largely
independent of the band-edge index location — for a clean DOS the gap
contributes zero, so noise near the band edges no longer shifts the
integral.

Determine band-edge indices via argmin(|edos - target|) instead of
np.where(...)[0][-1/0], so small energy-grid noise no longer flips
the index by a full grid spacing.

Aligns with pymatgen's FermiDos (materialsproject/pymatgen#3879,
#4240, materialsproject/pymatgen-core#64).

Also: validate edos brackets zero and bandgap <= max(edos); cache
integration indices in __init__; add regression tests for noise
robustness, narrow-gap clamping, and bracket-zero validation.

17 of 18 new or added lines in 1 file covered. (94.44%)

525 of 552 relevant lines covered (95.11%)

5.66 hits per line

Relevant lines Covered
Build:
Build:
552 RELEVANT LINES 525 COVERED LINES
5.66 HITS PER LINE
Source Files on main
  • Tree
  • List 7
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26174243092 main Make DOS integrations more robust to noise / band-edge effects (#55) Integrate carrier densities from edos[0] to mid-gap (rather than terminating at the VBM/CBM indices), so the result is largely independent of the band-edge index location — for ... push 20 May 2026 03:58PM UTC web-flow github
95.11
20922182331 main Merge pull request #54 from bjmorgan/refactor-fermi-solver Refactor get_sc_fermi to use scipy.optimize.brentq push 12 Jan 2026 02:05PM UTC web-flow github
95.1
20915653445 main Merge pull request #51 from bjmorgan/warnings_bugfix Fix global warning suppression on import (#50) push 12 Jan 2026 10:17AM UTC web-flow github
94.78
12788135356 main Added PyPI badge push 15 Jan 2025 12:18PM UTC bjmorgan github
94.83
12787759679 main Bumped to version 2.0.4 push 15 Jan 2025 11:55AM UTC bjmorgan github
94.83
12787747654 main Fixing merge conflict push 15 Jan 2025 11:54AM UTC bjmorgan github
94.83
12786200216 main Update publish-to-pypi.yml Updating for compatibility with pyproject.toml push 15 Jan 2025 10:20AM UTC web-flow github
94.83
12786111139 main Merge pull request #45 from bjmorgan/pyproject Move to pyproject.toml push 15 Jan 2025 10:15AM UTC web-flow github
94.83
12785756602 main Updated version to 2.0.1 push 15 Jan 2025 09:54AM UTC bjmorgan github
94.83
12785504292 main Updating docs requirements push 15 Jan 2025 09:39AM UTC bjmorgan github
94.83
See All Builds (278)
  • Repo on GitHub
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