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

OpenMMSolvation: Support for non-cubic boxes and defined box properties #673

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

IAlibay
Copy link
Contributor

@IAlibay IAlibay commented Dec 29, 2023

Fixes #585

In this PR:

  • Allows for defining the additional openmm keywords to addSolvent
  • New OpenMM solvation settings + docstring

Developers certificate of origin

@pep8speaks
Copy link

pep8speaks commented Dec 29, 2023

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

Line 669:1: W293 blank line contains whitespace

Line 15:80: E501 line too long (83 > 79 characters)
Line 115:80: E501 line too long (80 > 79 characters)
Line 144:80: E501 line too long (139 > 79 characters)

Line 90:42: E225 missing whitespace around operator

Line 453:9: E128 continuation line under-indented for visual indent
Line 473:34: E251 unexpected spaces around keyword / parameter equals
Line 473:36: E251 unexpected spaces around keyword / parameter equals

Comment last updated at 2024-03-11 14:52:46 UTC

@IAlibay IAlibay changed the title Update system creation for new solvent component options Update solvation settings for non-cubic boxes, etc... Jan 29, 2024
@richardjgowers richardjgowers added this to the 1.0.0 milestone Jan 30, 2024
@IAlibay IAlibay mentioned this pull request Jan 30, 2024
1 task
@IAlibay IAlibay changed the title Update solvation settings for non-cubic boxes, etc... OpenMMSolvation: Support for non-cubic boxes and defined box properties Feb 1, 2024
.github/workflows/ci.yaml Outdated Show resolved Hide resolved
@@ -26,6 +26,7 @@ dependencies:
- click
- typing-extensions
- lomap2>=2.3.0
- openmm>=8.0.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These solvation settings need OpenMM 8.0. Overall supporting multiple major versions of OpenMM is probably unwise as we'll need to test them all so I would suggest bumping up the minimum version?

Otherwise we can add a version check to the validator.

environment.yml Outdated Show resolved Hide resolved
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.92%. Comparing base (fd91902) to head (1cc7652).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #673      +/-   ##
==========================================
+ Coverage   91.76%   91.92%   +0.15%     
==========================================
  Files         133      133              
  Lines        9748     9890     +142     
==========================================
+ Hits         8945     9091     +146     
+ Misses        803      799       -4     
Flag Coverage Δ
fast-tests 91.92% <100.00%> (+0.15%) ⬆️

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.

@richardjgowers richardjgowers removed this from the 1.0.0 milestone Feb 8, 2024
:mod:`openff.interchange.components.interchange`
:mod:`openff.interchange.components._packmol`
"""
box_size: Optional[ArrayQuantity['nanometer']] = None
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This inherits the name from OpenMM, it's not amazingly named.

I.e. if you know what it is in OpenMM this makes sense, but if you don't then it may not...

@IAlibay
Copy link
Contributor Author

IAlibay commented Feb 9, 2024

I've handed this over to @hannahbaumann to drive forward whilst I'm OOO in case folks feel like pushing this for 1.0.

@mattwthompson
Copy link
Contributor

@hannahbaumann Josh Mitchell (@Yoshanuikabundi) wrote openff.interchange.components._packmol but I'm the point person in case you run into issues, or have any questions about why something is the way it is in OpenFF's infrastructure

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.

Solvate with non-cubic boxes
4 participants