Skip to content

Commit

Permalink
Clarify error in applying forcefield (#549)
Browse files Browse the repository at this point in the history
* Clarify error in applying forcefield

* Update foyer/atomtyper.py

Co-authored-by: CalCraven <[email protected]>

---------

Co-authored-by: CalCraven <[email protected]>
  • Loading branch information
jaclark5 and CalCraven authored May 16, 2024
1 parent a2b9975 commit 6939db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foyer/atomtyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _resolve_atomtypes(topology_graph, typemap):
)
else:
raise FoyerError(
"Found no types for atom {} ({}).".format(
"Found no types for atom numbered {} which is atomic number {}. Forcefield file is missing this atomtype, so try to add SMARTS definitions to account for this atom.".format(
atom_id, atoms[atom_id].atomic_number
)
)

0 comments on commit 6939db1

Please sign in to comment.