Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix in utility functions for pseudos #60

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

npaulish
Copy link
Collaborator

  • Use structure kind names properly since they may differ from the element name

Copy link
Contributor

aiida-cla-bot bot commented Feb 13, 2025

All contributors have accepted the CLA ✅


You might need to click the "Update/Rebase branch" button to update the pull request and rerun the GitHub actions to pass the CLA check.
Posted by the CLA Assistant Lite bot.

@npaulish
Copy link
Collaborator Author

I have read the CLA Document and I hereby accept the CLA

aiida-cla-bot bot added a commit that referenced this pull request Feb 13, 2025
npaulish added a commit to npaulish/aiida-wannier90-workflows that referenced this pull request Feb 13, 2025
  * Use structure kind names properly since they may differ from the element name

@npaulish has signed the CLA in aiidateam#60
@npaulish npaulish force-pushed the pseudo_fix branch 2 times, most recently from 7c1966a to 81c7c71 Compare February 13, 2025 11:20
for kind in composition:
upf = pseudos[kind]

for site in structure.sites:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this lead to duplicated entries if there are two sites of the same kind?
I think previously this function only returns a list of projections per kind, instead of per site?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! I changed the for loop to iterate kind_names in structure.get_kind_names() to reproduce the original behaviour

  * Use structure kind names properly since they may differ from the element name
@qiaojunfeng qiaojunfeng merged commit 279fe81 into aiidateam:main Feb 14, 2025
7 checks passed
@aiida-cla-bot aiida-cla-bot bot locked and limited conversation to collaborators Feb 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants