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

AMBER: temperature reading in parsers and tests. #225

Closed
DrDomenicoMarson opened this issue Sep 13, 2022 · 2 comments
Closed

AMBER: temperature reading in parsers and tests. #225

DrDomenicoMarson opened this issue Sep 13, 2022 · 2 comments
Labels

Comments

@DrDomenicoMarson
Copy link
Contributor

Temperature is required in input for both AMBER parsers (extract_dHdl and extract_u_nk), but also system temperature is already automatically read from the output file (reading temp0). I understand making T optional create a problem with the decorator that adds T to the argument of the output from the parsers, so I think still requiring T as a parameter is fine.

Currently, if temp0 is not found we log that 'Non-constant temperature MD not currently supported.' I don't think that this is right, as temp0 is set even in non-constant temperature MD, so I think that the check as it is is meaningless. As a note, it could be possible to check if the simulation was performed not at constant T, but it's not as easy because this information is written at the end of the file in a format that it's not easy to catch with current SectionParser. This shouldn't be a big problem I think, as the user should know if the simulation he/she performed was done at constant T, and I don't know if other parsers make this check at all (maybe it was a left-over from copying from alchemical-analysis?).

Still, we can benefit from reading temp0, and issue a WARNING to the user if the T in input is different from what is read from the file.

Related to that, I noticed we set T=300 in test_amber.py, but the simulations are run at T=298.0 K, so this should be fixed as well.

RECAP of what can be done:

  • still require T in input for the parser
  • still read temp0 from AMBER output
  • remove the WARNING about non-constant T simulation
  • add a WARNING if temp0 != T
  • fix test_amber.py with T=298.0

Let me know if this is OK, I can do it as soon as PR #224 is successfully closed.

@orbeckst orbeckst added AMBER MD engine parsers labels Sep 13, 2022
@orbeckst
Copy link
Member

Sounds all sensible to me. I'd be happy to review a PR that addresses this issue.

@DrDomenicoMarson
Copy link
Contributor Author

Great, I will address all these issues in some order, one at a time, to make the review process easier!

xiki-tempula pushed a commit that referenced this issue Sep 19, 2022
…files (#232)

This PR addresses issue #225, now:

we require T in input for the parser
we still read temp0 from AMBER output
the WARNING about non-constant T simulation is now a WARNING (the check could also be removed)
the parser raises a WARNING if temp0 != T (two new tests now assert that)
now the tests in test_amber.py use the correct T=298.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants