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

Coordinate folding change #388

Merged
merged 3 commits into from
Mar 25, 2024
Merged

Coordinate folding change #388

merged 3 commits into from
Mar 25, 2024

Conversation

ChiCheng45
Copy link
Collaborator

Description of work

  • Change the default fold setting to false for all converters.
  • Changed the folding so that the atom coordinates are moved to have a value between 0 and 1 in fractional coordinates.
  • Added the fold setting to the ASE and CP2K jobs so that all trajectory converters have this option.

DFTB H2O trajectory converted with the fold setting on.
image

Fixes
Fixes #372

To test
Check that the fold option is available for the ASE and CP2K conversion jobs in the GUI. Convert a trajectory that does not have all atom position inside the unit cell (DFTB H2O for example) with the fold setting on and check that they get folded into the unit cell in the 3D view.

Copy link
Collaborator

@MBartkowiakSTFC MBartkowiakSTFC left a comment

Choose a reason for hiding this comment

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

I tried a few trajectories using the ASE converter. They all worked correctly:

  1. The extended XYZ trajectory ends up in the box, with all the atoms folded as expected,
  2. The Gaussian trajectory without a cell works the same if the folding is turned on or off.
    Overall, it works just as expected.

@MBartkowiakSTFC MBartkowiakSTFC merged commit 87de379 into protos Mar 25, 2024
84 checks passed
@MBartkowiakSTFC MBartkowiakSTFC deleted the chi/fold-change branch March 25, 2024 13:43
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.

[BUG] Unexpected behaviour with fold coordinates into box option
2 participants