Skip to content

Commit

Permalink
Fix pylint complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhubonan committed Jan 11, 2024
1 parent a64a07d commit 19b55ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions easyunfold/effective_mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ def get_band_extrema(self, mode: str = 'cbm', extrema_tol: float = None, ispin=0
cbm_indices = []
for ik, wset in enumerate(weights):
for isubset in range(wset.shape[1]):
etmp = weights[ik][ispin, isubset, :, 0]
wtmp = weights[ik][ispin, isubset, :, 1]
etmp = wset[ispin, isubset, :, 0]
wtmp = wset[ispin, isubset, :, 1]
# Filter by intensity
mask = wtmp > intensity_tol
midx = np.where(mask)[0]
Expand Down

0 comments on commit 19b55ac

Please sign in to comment.