-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conversation
npaulish
commented
Feb 13, 2025
- Use structure kind names properly since they may differ from the element name
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. |
I have read the CLA Document and I hereby accept the CLA |
* Use structure kind names properly since they may differ from the element name @npaulish has signed the CLA in aiidateam#60
7c1966a
to
81c7c71
Compare
for kind in composition: | ||
upf = pseudos[kind] | ||
|
||
for site in structure.sites: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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