Skip to content

Commit 13d606e

Browse files
Merge pull request #2228 from anupam-banerjee/genanm_check
updated spring constants
2 parents c5dd484 + 3e85b1e commit 13d606e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

prody/dynamics/generalized_anm.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ def _backbone_curvature_blocks(coords: np.ndarray, kappa: float) -> np.ndarray:
140140

141141
def build_generalized_hessian(
142142
coords: np.ndarray,
143-
cutoff: float = 10.0,
143+
cutoff: float = 15.0,
144144
gamma: float = 1.0,
145-
k_theta: float = 0.5,
146-
k_phi: float = 0.2,
147-
kappa: float = 0.8,
145+
k_theta: float = 10.0,
146+
k_phi: float = 1.0,
147+
kappa: float = 20.0,
148148
include_sequential: bool = True,
149149
symmetrize: bool = True,
150150
) -> np.ndarray:
@@ -174,9 +174,9 @@ def buildHessian(self, coords, cutoff=15., gamma=1., **kwargs):
174174
"""Build generalized Hessian from coordinates or an object exposing getCoords().
175175
176176
Additional keyword arguments (defaults shown):
177-
k_theta=0.5
178-
k_phi=0.2
179-
kappa=0.8
177+
k_theta=10.0
178+
k_phi=1.0
179+
kappa=20.0
180180
include_sequential=True
181181
symmetrize=True
182182
@@ -193,9 +193,9 @@ def buildHessian(self, coords, cutoff=15., gamma=1., **kwargs):
193193
cutoff, g, gamma_func = checkENMParameters(cutoff, gamma)
194194

195195
# generalized-specific parameters
196-
k_theta = float(kwargs.pop('k_theta', 0.5))
197-
k_phi = float(kwargs.pop('k_phi', 0.2))
198-
kappa = float(kwargs.pop('kappa', 0.8))
196+
k_theta = float(kwargs.pop('k_theta', 10.0))
197+
k_phi = float(kwargs.pop('k_phi', 1.0))
198+
kappa = float(kwargs.pop('kappa', 20.0))
199199
include_sequential = bool(kwargs.pop('include_sequential', True))
200200
symmetrize = bool(kwargs.pop('symmetrize', True))
201201

0 commit comments

Comments
 (0)