Skip to content

Fix: indexing error in Procar._read()#4502

Merged
shyuep merged 2 commits intomaterialsproject:masterfrom
finnrk:master
Oct 7, 2025
Merged

Fix: indexing error in Procar._read()#4502
shyuep merged 2 commits intomaterialsproject:masterfrom
finnrk:master

Conversation

@finnrk
Copy link
Copy Markdown
Contributor

@finnrk finnrk commented Sep 22, 2025

Summary

Major changes:

  • Fixes a bug related to indices when skipping repeated k-points while reading PROCAR (for example, the double-counting of symmetry points when using a k-path for plotting bandstructure).

Previously, projections, eigenvalues, occupations and weights would be attributed to the wrong k-points. Also, the k-point following the skipped k-point would have complex projections of NaN, as well as an occupation, weight, eigenvalue and squared projections of 0.

@shyuep shyuep merged commit 4adb224 into materialsproject:master Oct 7, 2025
1 check passed
@shyuep
Copy link
Copy Markdown
Member

shyuep commented Oct 7, 2025

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants