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

Change get_simsteps function to handle NVT equilibration in plain MD protocol #647

Merged
merged 7 commits into from
Nov 22, 2023

Conversation

hannahbaumann
Copy link
Contributor

@hannahbaumann hannahbaumann commented Nov 20, 2023

Developers certificate of origin

@pep8speaks
Copy link

pep8speaks commented Nov 20, 2023

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

Line 68:17: E222 multiple spaces after operator

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

Comment last updated at 2023-11-22 14:33:35 UTC

Copy link

codecov bot commented Nov 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d011065) 90.97% compared to head (c45f85a) 90.97%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #647      +/-   ##
==========================================
- Coverage   90.97%   90.97%   -0.01%     
==========================================
  Files         127      127              
  Lines        8679     8675       -4     
==========================================
- Hits         7896     7892       -4     
  Misses        783      783              
Flag Coverage Δ
fast-tests 90.97% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@IAlibay
Copy link
Member

IAlibay commented Nov 22, 2023

@hannahbaumann could you tick that box re: certifying contributions?

Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

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

Couple of quick things to change, otherwise this looks good.

equil_steps, prod_steps = settings_validation.get_simsteps(
equil_length=settings['simulation_settings'].equilibration_length,
prod_length=settings['simulation_settings'].production_length,
equil_steps = settings_validation.get_simsteps(
Copy link
Member

Choose a reason for hiding this comment

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

This is great, de-hardcoding re-usable methods is super useful!

openfe/protocols/openmm_utils/settings_validation.py Outdated Show resolved Hide resolved
openfe/tests/protocols/test_openmmutils.py Outdated Show resolved Hide resolved
openfe/tests/protocols/test_openmmutils.py Outdated Show resolved Hide resolved
@hannahbaumann
Copy link
Contributor Author

@IAlibay : Addressed your comments! I realized that a lot of tests are failing in the plain MD PR because I had already changed the get_sim_steps function for the plain MD protocol, so the RFE and HFE tests are failing, probably best to fix/merge after this merge?!

Copy link
Member

@IAlibay IAlibay left a comment

Choose a reason for hiding this comment

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

lgtm!

@IAlibay IAlibay merged commit c24ebb7 into main Nov 22, 2023
9 checks passed
@IAlibay IAlibay deleted the get_simsteps_changes branch November 22, 2023 14:59
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.

3 participants