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

Document that topology charges are ignored #1064

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion openff/interchange/components/interchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def from_smirnoff(
positions are taken from the molecules in topology, if present on all molecules.
charge_from_molecules : `List[openff.toolkit.molecule.Molecule]`, optional
If specified, partial charges will be taken from the given molecules
instead of being determined by the force field.
instead of being determined by the force field. In either case, charges
on the input topology are ignored.
partial_bond_orders_from_molecules : List[openff.toolkit.molecule.Molecule], optional
If specified, partial bond orders will be taken from the given molecules
instead of being determined by the force field.
Expand All @@ -121,6 +122,10 @@ def from_smirnoff(
If the `Molecule` objects in the `topology` argument each contain conformers, the returned `Interchange` object
will have its positions set via concatenating the 0th conformer of each `Molecule`.

If the `Molecule` objects in the `topology` argument have stored partial charges, these are ignored and charges
are assigned according to the contents of the force field. To override the force field and use preset charges,
use the `charge_from_molecules` argument.

Examples
--------
Generate an Interchange object from a single-molecule (OpenFF) topology and
Expand Down
Loading