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

Add and update conversions for opls and fourier potentials #825

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CalCraven
Copy link
Contributor

The utilities for converting potentials was not entirely fleshed out. Adding some quick ways to move from OPLS to Fourier potentials, and fixing some of the function naming so it's clearly what conversion is happening and which templates we're moving from.

@@ -93,7 +93,7 @@
)

with pytest.raises(GMSOError, match=""):
ryckaert_connection_type = convert_opls_to_ryckaert(opls_connection_type)
ryckaert_connection_type = convert_fourier_to_ryckaert(opls_connection_type)

Check notice

Code scanning / CodeQL

Unused local variable Note test

Variable ryckaert_connection_type is not used.
@@ -81,7 +81,7 @@
)

with pytest.raises(GMSOError, match=""):
ryckaert_connection_type = convert_opls_to_ryckaert(opls_connection_type)
ryckaert_connection_type = convert_fourier_to_ryckaert(opls_connection_type)

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning test

This assignment to 'ryckaert_connection_type' is unnecessary as it is
redefined
before this value is used.
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 47.05882% with 9 lines in your changes missing coverage. Please review.

Project coverage is 94.00%. Comparing base (fbac310) to head (d2ab96a).

Files Patch % Lines
gmso/utils/conversions.py 50.00% 8 Missing ⚠️
gmso/formats/mcf.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #825      +/-   ##
==========================================
- Coverage   94.11%   94.00%   -0.12%     
==========================================
  Files          65       65              
  Lines        6870     6872       +2     
==========================================
- Hits         6466     6460       -6     
- Misses        404      412       +8     

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

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.

1 participant