Skip to content

Commit

Permalink
Do not shrink bonds and angles to 0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
martimunicoy committed Sep 13, 2023
1 parent d952ec0 commit 572d206
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions peleffy/topology/alchemistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ def topology_from_lambda_set(self, lambda_set):

for bond_idx, bond in enumerate(alchemical_topology.bonds):
if bond_idx in self._exclusive_bonds:
bond.apply_lambda(["spring_constant", "eq_dist"],
bond.apply_lambda(["spring_constant", ],
lambda_set.get_lambda_for_bonded(),
reverse=False)

if bond_idx in self._non_native_bonds:
bond.apply_lambda(["spring_constant", "eq_dist"],
bond.apply_lambda(["spring_constant", ],
lambda_set.get_lambda_for_bonded(),
reverse=True)

Expand All @@ -309,12 +309,12 @@ def topology_from_lambda_set(self, lambda_set):

for angle_idx, angle in enumerate(alchemical_topology.angles):
if angle_idx in self._exclusive_angles:
angle.apply_lambda(["spring_constant", "eq_angle"],
angle.apply_lambda(["spring_constant", ],
lambda_set.get_lambda_for_bonded(),
reverse=False)

if angle_idx in self._non_native_angles:
angle.apply_lambda(["spring_constant", "eq_angle"],
angle.apply_lambda(["spring_constant", ],
lambda_set.get_lambda_for_bonded(),
reverse=True)

Expand Down

0 comments on commit 572d206

Please sign in to comment.