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
Passing two isomorphic Molecules with different partial charges to from_smirnoff's charge_from_molecules flag will lead to partial charges only being assigned from the first Molecule.
In our reference implementation of SMIRNOFF in the OpenFF Toolkit, we also provide a method for specifying user-defined partial charges during system creation. This functionality is accessed by using the charge_from_molecules optional argument during system creation, such as in ForceField.create_openmm_system(topology, charge_from_molecules=molecule_list). When this optional keyword is provided, all matching molecules will have their charges set by the entries in molecule_list. This method is provided solely for convenience in developing and exploring alternative charging schemes; actual force field releases for distribution will use one of the other mechanisms specified above.
so I'm going to decide we're on our own in deciding how this behavior should work.
Simple ideas first - forbid isomorphic molecules from appearing in this list multiple times? This would be straightforward to implement, just de-duplicating everything into a set using a key that would collide isomorphic molecules.
Description
Passing two isomorphic Molecules with different partial charges to
from_smirnoff
'scharge_from_molecules
flag will lead to partial charges only being assigned from the first Molecule.Reproduction
Output
Software versions
Interchange v0.3.29
The text was updated successfully, but these errors were encountered: