Skip to content

Commit

Permalink
Make UnAssignedChemistryInPDBError hints clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshanuikabundi committed Aug 7, 2024
1 parent bb9d97f commit 29b0460
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openff/toolkit/utils/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,9 @@ def assigned_residue_name_mismatch_hint(self) -> list[str]:
# Only the first match is assigned, so throw out the others
assigned_resname = next(iter(matched_resnames), "No match")

residues[(input_resname, input_resnum, input_chain)].add(assigned_resname)
residues[(input_resname, input_resnum, input_chain)].add(
assigned_resname.upper()
)

# Filter out residues where assigned resname doesn't match the input
residues = {
Expand Down

0 comments on commit 29b0460

Please sign in to comment.