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

Allow EMLECalculator to compute electrostatic contributions to energy and gradients only #14

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

lohedges
Copy link
Contributor

This PR adds support for using no backend for the in vacuo calculation, so that the EMLECalculator only returns the electrostatic contributions to the energy and gradients. This allows the calculator to be used with existing backends, e.g. those from OpenMM-ML.

This also fixes a small bug in the conditonal checking for the backends, where there were two consecutive if statements. (Ironically, this was only caught be the addition of the final else statement to catch the NoneType backend.)

@lohedges lohedges added the enhancement New feature or request label Apr 22, 2024
@lohedges lohedges merged commit 8f6fb4c into main Apr 22, 2024
5 checks passed
@lohedges lohedges deleted the feature_no_backend branch April 22, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant