Skip to content

Commit

Permalink
Bug fix in parsing of high symmtery points grid value.
Browse files Browse the repository at this point in the history
  • Loading branch information
lllangWV committed Aug 25, 2024
1 parent b34f6a6 commit 94414e4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyprocar/io/qe.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,13 @@ def _get_kpoint_labels(self):
grid_current = int(raw_khigh_sym[ihs].split()[3])
if ihs < self.nhigh_sym - 2:
self.ngrids.append(grid_current)
elif ihs == self.nhigh_sym - 1:

# Incrementing grid by 1 for seocnd to last high symmetry point
elif ihs == self.nhigh_sym - 2:
self.ngrids.append(grid_current+1)
elif ihs == self.nhigh_sym:

# Skipping the last high symmetry point
elif ihs == self.nhigh_sym - 1:
continue
self.kticks.append(tick_Count - 1)
tick_Count += grid_current
Expand Down

0 comments on commit 94414e4

Please sign in to comment.