Skip to content

Commit

Permalink
asfe should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKarwou committed Dec 6, 2023
1 parent f51e3d1 commit 64bf600
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions transformato/mutate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2253,12 +2253,18 @@ def _scale_epsilon_and_rmin(atom, lambda_value, psf, tlc):
# Quick check, if selected atom via AMBER mask is the same as the atom
# we want to modify
assert psf[f":{tlc}@{atom.idx+1}"].atoms[0].type == atom.type

pm.tools.actions.addLJType(
psf,
f":{tlc}@{atom.idx+1}",
radius=atom.initial_rmin * lambda_value,
epsilon=atom.initial_epsilon * lambda_value,
).execute()
### Only necessary to rename the atomtype to DDDn !!!
pm.tools.actions.changeLJSingleType(
psf,
f":{tlc}@{atom.idx+1}",
0,
0,
atom.initial_rmin * lambda_value,
atom.initial_epsilon * lambda_value,
).execute()

@staticmethod
Expand Down

0 comments on commit 64bf600

Please sign in to comment.