Skip to content

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.


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

Variable ryckaert_connection_type is not used.

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

This assignment to 'ryckaert_connection_type' is unnecessary as it is [redefined](1) 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