Skip to content

Commit

Permalink
Merge pull request #123 from nlesc-nano/fix
Browse files Browse the repository at this point in the history
BUG: Fix two MD-ASA bugs
  • Loading branch information
BvB93 authored Mar 15, 2022
2 parents 83bc825 + d7b22fc commit 9d9204a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nanoCAT/asa/md_asa.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def _get_neutral_psf(psf: PSFContainer, frag_neutral: Molecule, frag_count: int)

def _md2opt(s: Settings) -> Settings:
"""Convert CP2K MD settings to CP2K geometry optimization settings."""
s2 = s.copy()
s2 = Settings(s)
del s2.input.motion.md
s2.input['global'].run_type = 'geometry_optimization'

Expand Down
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 9d9204a

Please sign in to comment.