Skip to content

Correct method get_projection_on_elements docstring under Procar class#3945

Merged
janosh merged 3 commits intomaterialsproject:masterfrom
DanielYang59:fix-procar-docs
Jul 24, 2024
Merged

Correct method get_projection_on_elements docstring under Procar class#3945
janosh merged 3 commits intomaterialsproject:masterfrom
DanielYang59:fix-procar-docs

Conversation

@DanielYang59
Copy link
Copy Markdown
Contributor

@DanielYang59 DanielYang59 commented Jul 22, 2024

Summary

  • Correct method get_projection_on_elements docstring of Procar class, where the band index and kpoint index is reversed.

    for kpoint, band in itertools.product(range(self.nkpoints), range(self.nbands)):
    dico[spin][band][kpoint][name] += np.sum(data[kpoint, band, iat, :])

@DanielYang59 DanielYang59 marked this pull request as draft July 22, 2024 07:24
@DanielYang59 DanielYang59 marked this pull request as ready for review July 22, 2024 08:02
@DanielYang59
Copy link
Copy Markdown
Contributor Author

@janosh Please review this at your convenience, thanks!

Copy link
Copy Markdown
Member

@janosh janosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DanielYang59 good catch! 👍

@janosh janosh added io Input/output functionality docs Documentation, examples, user guides vasp Vienna Ab initio Simulation Package labels Jul 24, 2024
@janosh janosh merged commit 5d925fe into materialsproject:master Jul 24, 2024
@DanielYang59 DanielYang59 deleted the fix-procar-docs branch July 24, 2024 11:22
@DanielYang59
Copy link
Copy Markdown
Contributor Author

Thanks for reviewing!

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

Labels

docs Documentation, examples, user guides io Input/output functionality vasp Vienna Ab initio Simulation Package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants