54a02c7a3ca3cce7e62f92e0a27244d27f8d9e83,prody/ensemble/functions.py,,refineEnsemble,#Any#Any#Any#,622
Before Change
// find common indices from L and U
I = list(set(L) - (set(L) - set(U)))
for p in P:
if p not in I:
I.append(p)
I.sort()
reens = ensemble[I]
LOGGER.report("Ensemble was refined in %.2fs.", "_prody_refineEnsemble")
After Change
// rmsd = ensemble.getRMSDs()
// ref_i = np.argmin(rmsd)
ref_i = kwargs.pop("ref", 0)
if isinstance(ref_i, Integral):
pass
elif isinstance(ref_i, str):
labels = ensemble.getLabels()
ref_i = labels.index(ref_i)
else:
LOGGER.warn("cannot found any conformation with the label %s in the ensemble"%str(ref_i))
if not ref_i in P:
P = [ref_i] + P
////// calculate pairwise RMSDs //////
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: prody/ProDy
Commit Name: 54a02c7a3ca3cce7e62f92e0a27244d27f8d9e83
Time: 2019-02-08
Author: hongchun@pitt.edu
File Name: prody/ensemble/functions.py
Class Name:
Method Name: refineEnsemble
Project Name: mlflow/mlflow
Commit Name: 657370491536cbb32662292089769c8e5c04468d
Time: 2019-09-04
Author: 47035943+ahutterTA@users.noreply.github.com
File Name: mlflow/store/hdfs_artifact_repo.py
Class Name: HdfsArtifactRepository
Method Name: list_artifacts
Project Name: prody/ProDy
Commit Name: bb958949caaba2341ae5662c484d5106d68e4aed
Time: 2019-04-15
Author: hongchun@pitt.edu
File Name: prody/ensemble/functions.py
Class Name:
Method Name: refineEnsemble