Skip to content

Commit

Permalink
pre-commit auto-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 5a923af commit bc3caa9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pymatgen/electronic_structure/dos.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,9 +903,7 @@ def get_band_filling(

# Only integrate up to Fermi level
energies = dos.energies - dos.efermi
return np.trapz(dos_densities[energies < 0], x=energies[energies < 0]) / np.trapz(
dos_densities, x=energies
)
return np.trapz(dos_densities[energies < 0], x=energies[energies < 0]) / np.trapz(dos_densities, x=energies)

def get_band_center(
self,
Expand Down

0 comments on commit bc3caa9

Please sign in to comment.