Skip to content

Commit

Permalink
BUG: Fix properties being incorrectly set when adding capping hydrogens
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas van Beek committed Mar 15, 2022
1 parent cf586ab commit d7b22fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nanoCAT/ff/ff_anionic.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ def run_ff_anionic(mol: Molecule, anchor: Atom, s: Settings) -> None:
_cap_h = mol_with_h[-1]
cap_h = Atom(atnum=_cap_h.atnum,
coords=_cap_h.coords,
mol=mol,
settings=mol[1].properties.copy())
mol=mol)

cap_h.properties = mol[1].properties.copy()
cap_h.properties.pdb_info.IsHeteroAtom = False
cap_h.properties.pdb_info.Name = 'Hxx'
cap_h.properties.pdb_info.Name = 'Hxx '
mol.add_atom(cap_h)
mol.add_bond(Bond(anchor, cap_h, mol=mol))

Expand Down

0 comments on commit d7b22fc

Please sign in to comment.