63d8db941c87501296c0e8c73c7871541455571a,prody/dynamics/functions.py,,calcENM,#,411
Before Change
else:
trim = str(trim).lower().strip()
if trim == "trim" and select is not None:
if isinstance(select, AtomSubset):
atoms = select
else:
atoms = atoms.select(str(select))
enm = None
if model == "anm":
anm = ANM(title)
anm.buildHessian(atoms, gamma=gamma, **kwargs)
After Change
enm, atoms = reduceModel(enm, atoms, select)
enm.calcModes(n_modes=n_modes, zeros=zeros, turbo=turbo)
elif trim == "trim":
if isinstance(select, np.ndarray):
enm = trimModelByMask(enm, select)
atoms = select
else:
enm, atoms = trimModel(enm, atoms, select)
enm.calcModes(n_modes=n_modes, zeros=zeros, turbo=turbo)
else:
raise ValueError("trim can only be "trim", "reduce", or "slice"")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: prody/ProDy
Commit Name: 63d8db941c87501296c0e8c73c7871541455571a
Time: 2020-06-09
Author: shz66@pitt.edu
File Name: prody/dynamics/functions.py
Class Name:
Method Name: calcENM
Project Name: kymatio/kymatio
Commit Name: 5f0a67ce3c2d01a2da19b18f2f0834bb31c35182
Time: 2019-03-02
Author: edouard.oyallon@centralesupelec.fr
File Name: kymatio/scattering2d/backend/backend_skcuda.py
Class Name: Pad
Method Name: __call__
Project Name: kymatio/kymatio
Commit Name: 5f0a67ce3c2d01a2da19b18f2f0834bb31c35182
Time: 2019-03-02
Author: edouard.oyallon@centralesupelec.fr
File Name: kymatio/scattering2d/backend/backend_torch.py
Class Name: Pad
Method Name: __call__