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

ENH: support tpx 134 (GMX 2024.4) #4866

Merged
merged 2 commits into from
Dec 28, 2024

Conversation

tylerjereddy
Copy link
Member

@tylerjereddy tylerjereddy commented Dec 26, 2024

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

Developers certificate of origin


📚 Documentation preview 📚: https://mdanalysis--4866.org.readthedocs.build/en/4866/

* Fixes MDAnalysisgh-4855.

* Add support for reading topology data from `.tpr` files
produced by GROMACS 2024.4, corresponding to tpx version
`134`.

* My approach was similar to the one I used in MDAnalysisgh-4523, except
for two things: 1) I retrieved the current generation (`28`) from
a `print` in our own binary parser rather than rebuilding
GMX from source with added `printf`, and more importantly 2) I
had to add some shims because the `.tpr` format has changed.

* With regard to the additional field data now stored in the
`.tpr` format, I was involved in reviewing it upstream at:
https://gitlab.com/gromacs/gromacs/-/merge_requests/4544.
You can see that the changes related to the MARTINI functional
form made it into the `v2024.4` tag i.e., here:
https://gitlab.com/gromacs/gromacs/-/blob/v2024.4/src/gromacs/gmxpreprocess/convparm.cpp?ref_type=tags#L372
@pep8speaks
Copy link

pep8speaks commented Dec 26, 2024

Hello @tylerjereddy! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 435:80: E501 line too long (94 > 79 characters)

Comment last updated at 2024-12-27 17:25:12 UTC

Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.63%. Comparing base (c08cb79) to head (daa16ce).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4866      +/-   ##
===========================================
- Coverage    93.65%   93.63%   -0.03%     
===========================================
  Files          177      189      +12     
  Lines        21779    22853    +1074     
  Branches      3064     3067       +3     
===========================================
+ Hits         20398    21399    +1001     
- Misses         929     1002      +73     
  Partials       452      452              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@hmacdope hmacdope left a comment

Choose a reason for hiding this comment

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

Tiny typo but thanks for doing this!

package/CHANGELOG Outdated Show resolved Hide resolved
Copy link
Member

@RMeli RMeli left a comment

Choose a reason for hiding this comment

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

LGTM besides the comment from @hmacdope.

Copy link
Contributor

@tanishy7777 tanishy7777 Dec 27, 2024

Choose a reason for hiding this comment

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

I was going through this PR and I am not able to understand why u added an elif for fver>=134. I am a bit new to this repo.

* Remove the periods (`.`) from Tyler's identifier
in the `CHANGELOG` to satisfy reviewer comments.
@hmacdope hmacdope merged commit 5656fe4 into MDAnalysis:develop Dec 28, 2024
22 of 24 checks passed
@tylerjereddy tylerjereddy deleted the treddy_issue_4855_tpx_134 branch December 28, 2024 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Your tpx version is 134, which this parser does not support, yet
5 participants