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

use kind_name as element tag in the xyz file #216

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

superstar54
Copy link
Member

@superstar54 superstar54 commented May 13, 2024

The structure.get_ase() method currently outputs an uncontrollable element tag. For instance, if there is a StructureData with a kind having name = X and element = Pt, the resulting aiida.coord.xyz file labels this as Pt1 for the X kind, which can be confusing for users.

This pull request modifies the behavior to use kind_name as the element tag in the XYZ file, enhancing clarity and user experience.

@superstar54 superstar54 changed the title use kind_name as atom symbol in the xyz file use kind_name as element tag in the xyz file May 13, 2024
Copy link
Contributor

@yakutovicha yakutovicha left a comment

Choose a reason for hiding this comment

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

Thanks, @superstar54. It looks good. I would only request to modify the _atoms_to_xyz function directly. It is also used inside the trajectory parser, so it makes sense that the change is also present there.

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