54a02c7a3ca3cce7e62f92e0a27244d27f8d9e83,prody/ensemble/functions.py,,refineEnsemble,#Any#Any#Any#,622

Before Change



    ////// obtain reference index
    rmsd = ensemble.getRMSDs()
    ref_i = np.argmin(rmsd)

    ////// calculate pairwise RMSDs //////
    RMSDs = ensemble.getRMSDs(pairwise=True)

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 //////
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: prody/ProDy
Commit Name: bb958949caaba2341ae5662c484d5106d68e4aed
Time: 2019-04-15
Author: hongchun@pitt.edu
File Name: prody/ensemble/functions.py
Class Name:
Method Name: refineEnsemble


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 82a5b35044eeecd7db221f8e5cee97499a5bd83b
Time: 2018-07-10
Author: benjamin.edwards@ibm.com
File Name: art/attacks/iterative_method.py
Class Name: BasicIterativeMethod
Method Name: generate