Skip to content

Commit

Permalink
Merge pull request #180 from martimunicoy/alchemistry_fix
Browse files Browse the repository at this point in the history
Alchemistry fix
  • Loading branch information
martimunicoy committed Nov 16, 2023
2 parents c0ae464 + 572d206 commit 0b8872a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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
2 changes: 1 addition & 1 deletion peleffy/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def set_level(self, level):
CRITICAL]
"""
import logging
logging.basicConfig()
#logging.basicConfig()

if level.upper() == 'DEBUG':
logging_level = logging.DEBUG
Expand Down

0 comments on commit 0b8872a

Please sign in to comment.