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

Improve H5MD trajectory support #655

Merged
merged 9 commits into from
Feb 11, 2025

Conversation

MBartkowiakSTFC
Copy link
Collaborator

Description of work
Initially, the H5MD support was added to MDANSE using sample H5MD trajectories produced by MDMC. In this PR changes were made to the code to ensure that trajectories generated using https://github.com/oerc0122/castep_outputs_tools can also be loaded.

Fixes

  1. Extend the code finding physical units in H5MD files.
  2. Add a check for chemical element dictionary in the species dataset metadata.
  3. Improve the code reading unit cells and time values.

To test
Tests must pass.
Use the trajectory https://github.com/ISISNeutronMuon/MDANSE-Examples/tree/main/Data/Trajectories/CASTEP and convert it to H5MD using https://github.com/oerc0122/castep_outputs_tools . It should load and show correct atom positions and simulation box size.

Copy link
Collaborator

@oerc0122 oerc0122 left a comment

Choose a reason for hiding this comment

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

Given other issues are being fixed in #657, LGTM!

MDANSE/Src/MDANSE/Trajectory/H5MDTrajectory.py Outdated Show resolved Hide resolved
@MBartkowiakSTFC MBartkowiakSTFC merged commit d14e44a into protos Feb 11, 2025
32 checks passed
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