Skip to content

Commit

Permalink
Update band.py (#4116)
Browse files Browse the repository at this point in the history
  • Loading branch information
1041176461 committed May 8, 2024
1 parent c8ce658 commit 3344e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/plot-tools/abacus_plot/band.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ def set_vcband(cls, energy: Sequence) -> Tuple[namedtuple, namedtuple]:
band_vbm = e_T[band_vbm_index]
evbm = np.max(band_vbm)
k_vbm_index = np.where(band_vbm == evbm)[1]
vb = Band(band_vbm_index, band_vbm-evbm, evbm-evbm, k_vbm_index)
vb = Band(band_vbm_index, band_vbm, evbm, k_vbm_index)

# conduct band
band_cbm_index = np.where(num_gt_Ef != 0)[0]
band_cbm = e_T[band_cbm_index]
ecbm = np.min(band_cbm)
k_cbm_index = np.where(band_cbm == ecbm)[1]
cb = Band(band_cbm_index, band_cbm-evbm, ecbm-evbm, k_cbm_index)
cb = Band(band_cbm_index, band_cbm, ecbm, k_cbm_index)

return vb, cb

Expand Down

0 comments on commit 3344e50

Please sign in to comment.