You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bubbles up because the number of bonds in the openmm.System is not guaranteed to match the number of bonds in the Molecule. Interchange currently does not add bonds to constrained atom pairs; it may or may not have in the past, I don't remember. In general this behavior shouldn't be considered stable since, to my knowledge, it doesn't affect how OpenMM simulations are run.
In [2]: fromopenff.toolkitimportForceFieldIn [3]: system=ForceField("openff-2.1.0.offxml").create_openmm_system(molecule.to_topology())
In [4]: system.getForce(3).getNumBonds(), molecule.n_bondsOut[4]: (2, 8)
In the current stack, the number of bonds in the two objects will only match for toy molecules with no hydrogens.
The text was updated successfully, but these errors were encountered:
This bubbles up because the number of bonds in the
openmm.System
is not guaranteed to match the number of bonds in theMolecule
. Interchange currently does not add bonds to constrained atom pairs; it may or may not have in the past, I don't remember. In general this behavior shouldn't be considered stable since, to my knowledge, it doesn't affect how OpenMM simulations are run.In the current stack, the number of bonds in the two objects will only match for toy molecules with no hydrogens.
The text was updated successfully, but these errors were encountered: