Skip to content

Commit

Permalink
Fix mypy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
proteneer committed Sep 19, 2024
1 parent 3d1dfe6 commit 99dfbf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions timemachine/fe/rbfe.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ def estimate_relative_free_energy_bisection_hrex(
n_windows: Optional[int] = None,
min_overlap: Optional[float] = None,
min_cutoff: Optional[float] = 0.7,
use_smoothcore: Optional[bool] = False,
) -> HREXSimulationResult:
"""
Estimate relative free energy between mol_a and mol_b using Hamiltonian Replica EXchange (HREX) sampling of a
Expand Down
4 changes: 2 additions & 2 deletions timemachine/potentials/nonbonded.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,8 @@ def smoothcore_lj_interpolation(lamb, lj_src, lj_dst, mol_a_idxs, mol_b_idxs):
lj_dst_stable[mol_b_idxs] = lj_dst[mol_b_idxs]
lj_interpolated = np.repeat([MIN_SIG_EPS], len(lj_src), axis=0)

lj_interpolated[mol_a_idxs] += np.clip((1 - lamb) * 10, 0, 1) * lj_src[mol_a_idxs]
lj_interpolated[mol_b_idxs] += np.clip(lamb * 10, 0, 1) * lj_dst[mol_b_idxs]
lj_interpolated[mol_a_idxs] += np.clip((1 - lamb) * 5, 0, 1) * lj_src[mol_a_idxs]
lj_interpolated[mol_b_idxs] += np.clip(lamb * 5, 0, 1) * lj_dst[mol_b_idxs]

return lj_interpolated

Expand Down

0 comments on commit 99dfbf3

Please sign in to comment.