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

gmso xml equation compare and scaling, and extracting specific data from FFs #698

Merged
merged 35 commits into from
Jan 11, 2023

Conversation

bc118
Copy link
Contributor

@bc118 bc118 commented Oct 14, 2022

gmso_equation_compare.py = gmso xml equation compare and scaling for each potential parameter
gmso_specific_ff_to_residue.py = extracting specific data from each force field on a per molecule/residue basis for later use for some file writers.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Oct 14, 2022

This pull request introduces 18 alerts when merging 8a7bf2d into bc557dd - view on LGTM.com

new alerts:

  • 12 for Except block handles 'BaseException'
  • 3 for Unused import
  • 3 for Variable defined multiple times

@codecov
Copy link

codecov bot commented Oct 14, 2022

Codecov Report

Base: 91.48% // Head: 92.06% // Increases project coverage by +0.58% 🎉

Coverage data is based on head (ce91160) compared to base (0ba3e94).
Patch coverage: 92.89% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #698      +/-   ##
==========================================
+ Coverage   91.48%   92.06%   +0.58%     
==========================================
  Files          63       65       +2     
  Lines        5450     5838     +388     
==========================================
+ Hits         4986     5375     +389     
+ Misses        464      463       -1     
Impacted Files Coverage Δ
gmso/utils/specific_ff_to_residue.py 89.66% <89.66%> (ø)
gmso/utils/equation_compare.py 97.88% <97.88%> (ø)
gmso/core/forcefield.py 96.53% <100.00%> (+1.09%) ⬆️
gmso/external/convert_mbuild.py 94.70% <100.00%> (+0.07%) ⬆️
gmso/parameterization/foyer_utils.py 100.00% <100.00%> (ø)
gmso/core/atom.py 91.78% <0.00%> (+1.36%) ⬆️
gmso/core/topology.py 97.87% <0.00%> (+5.66%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Oct 28, 2022

This pull request introduces 18 alerts when merging 9af98ee into bc557dd - view on LGTM.com

new alerts:

  • 12 for Except block handles 'BaseException'
  • 3 for Unused import
  • 3 for Variable defined multiple times

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Nov 30, 2022

This pull request introduces 18 alerts when merging 42c7b71 into 6bcdfcc - view on LGTM.com

new alerts:

  • 12 for Except block handles 'BaseException'
  • 3 for Unused import
  • 3 for Variable defined multiple times

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Dec 1, 2022

This pull request introduces 18 alerts when merging 2dcb2dc into 6bcdfcc - view on LGTM.com

new alerts:

  • 12 for Except block handles 'BaseException'
  • 3 for Unused import
  • 3 for Variable defined multiple times

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog.

CalCraven and others added 2 commits December 2, 2022 16:47
…t look like elements but don't have the element information included
@lgtm-com
Copy link
Contributor

lgtm-com bot commented Dec 2, 2022

This pull request introduces 18 alerts when merging 7989b61 into 6bcdfcc - view on LGTM.com

new alerts:

  • 12 for Except block handles 'BaseException'
  • 3 for Unused import
  • 3 for Variable defined multiple times

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog.

@CalCraven
Copy link
Contributor

It looks to me like the errors you're seeing for the new xmls you're checking aren't writing out the combining rules. That's the difference in the read and written gmso xmls. To combat this, we need to make some changes to this function or create an xml_writer.py in the forcefield-utilities package.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Dec 6, 2022

This pull request introduces 19 alerts when merging 0510ed4 into 6bcdfcc - view on LGTM.com

new alerts:

  • 12 for Except block handles 'BaseException'
  • 4 for Unused import
  • 3 for Variable defined multiple times

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Dec 6, 2022

This pull request introduces 19 alerts when merging 50c9352 into 6bcdfcc - view on LGTM.com

new alerts:

  • 12 for Except block handles 'BaseException'
  • 4 for Unused import
  • 3 for Variable defined multiple times

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Dec 6, 2022

This pull request introduces 18 alerts when merging 145c040 into 6bcdfcc - view on LGTM.com

new alerts:

  • 12 for Except block handles 'BaseException'
  • 3 for Unused import
  • 3 for Variable defined multiple times

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Dec 6, 2022

This pull request introduces 18 alerts when merging 10c5c01 into 6bcdfcc - view on LGTM.com

new alerts:

  • 12 for Except block handles 'BaseException'
  • 3 for Unused import
  • 3 for Variable defined multiple times

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog.

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Dec 8, 2022

This pull request introduces 18 alerts when merging 67dbd58 into fe321e2 - view on LGTM.com

new alerts:

  • 12 for Except block handles 'BaseException'
  • 3 for Unused import
  • 3 for Variable defined multiple times

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. It looks like GitHub code scanning with CodeQL is already set up for this repo, so no further action is needed 🚀. For more information, please check out our post on the GitHub blog.

@bc118
Copy link
Contributor Author

bc118 commented Jan 5, 2023

OK this LGTM now, everything passing, and I successfully tested these files in MoSDeF-GOMC also.

Copy link
Member

@daico007 daico007 left a comment

Choose a reason for hiding this comment

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

Some code reformat, will pick up from line 437 (specific_ff_to_residue.py) later.

gmso/utils/specific_ff_to_residue.py Outdated Show resolved Hide resolved
gmso/utils/specific_ff_to_residue.py Outdated Show resolved Hide resolved
gmso/utils/specific_ff_to_residue.py Outdated Show resolved Hide resolved
gmso/utils/specific_ff_to_residue.py Outdated Show resolved Hide resolved
gmso/utils/specific_ff_to_residue.py Outdated Show resolved Hide resolved
gmso/utils/specific_ff_to_residue.py Outdated Show resolved Hide resolved
gmso/utils/specific_ff_to_residue.py Outdated Show resolved Hide resolved
gmso/utils/specific_ff_to_residue.py Outdated Show resolved Hide resolved
gmso/utils/specific_ff_to_residue.py Outdated Show resolved Hide resolved
gmso/utils/specific_ff_to_residue.py Outdated Show resolved Hide resolved
Copy link
Member

@daico007 daico007 left a comment

Choose a reason for hiding this comment

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

LGTM! Some chunk of code could used some refactor (separating molecule in a topology), but I guess that should be handled in a different PR (left a #TODO)

@daico007 daico007 merged commit 2f4be46 into mosdef-hub:main Jan 11, 2023
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