-
Notifications
You must be signed in to change notification settings - Fork 33
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
Remove convert_foyer_xml and replace with using foyer as the backend #749
Remove convert_foyer_xml and replace with using foyer as the backend #749
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #749 +/- ##
==========================================
- Coverage 92.06% 91.85% -0.21%
==========================================
Files 67 66 -1
Lines 6890 6702 -188
==========================================
- Hits 6343 6156 -187
+ Misses 547 546 -1
☔ View full report in Codecov by Sentry. |
I tried this little script for gaff forcefield and looks like there is an issue with the unit of periodicity parameter Here's the script: import mbuild as mb
from gmso.core.forcefield import ForceField
from gmso.parameterization import apply
from gmso.external import from_mbuild, to_hoomd_forcefield
smiles = "c1ccc(S)cc1"
monomer = mb.load(smiles, smiles=True)
topology = from_mbuild(monomer)
topology.identify_connections()
gmso_ff = ForceField("gaff.xml")
apply(topology, gmso_ff)
ff, refs = to_hoomd_forcefield(
top=topology,
r_cut=2.5
) The error is:
|
I think this should get raised as an issue because I think this base_unit system needs to be extended to have the capability of handing dimensionless conversions via a set of normalizing mass, energy, and distances. |
…tilities. Updates tests to load ff from XML through ff-utils
…move-gmso-xml-conversions
266b51d
to
60025c0
Compare
…d_utilities method
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments about the deprecating messages.
Co-authored-by: Co Quach <[email protected]>
for more information, see https://pre-commit.ci
Issue #748 discusses this, but there are components of forcefield conversion in from Foyer to GMSO that have not been updated in the gmso.external.convert_foyer_xml module, but are supported in forcefield-utilities. Therefore, I think it is worthwhile to move the tests done on this utility to test the same forcefields loaded through that path.