Skip to content

use kind_name as element tag in the xyz file#216

Open
superstar54 wants to merge 3 commits intoaiidateam:mainfrom
superstar54:write_kind_name
Open

use kind_name as element tag in the xyz file#216
superstar54 wants to merge 3 commits intoaiidateam:mainfrom
superstar54:write_kind_name

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