b1156f48d60d0dc88a80744102c29b9331754ac7,prody/ensemble/functions.py,,loadEnsemble,#Any#,55

Before Change


    ensemble.setAtoms(atoms)    
    if isPDBEnsemble:
        confs = attr_dict["_confs"]
        ensemble.addCoordset(attr_dict["_confs"], weights)
        if "_identifiers" in attr_dict.files:
            ensemble._labels = list(attr_dict["_identifiers"])
        if "_labels" in attr_dict.files:

After Change


    Returns ensemble instance loaded from *filename*.  This function makes
    use of :func:`numpy.load` function.  See also :func:`saveEnsemble`

    attr_dict = np.load(filename)
    if "_weights" in attr_dict:
        weights = attr_dict["_weights"]
    else:
        weights = None   
    isPDBEnsemble = False
    try:
        title = str(attr_dict["_title"])
    except KeyError:
        title = str(attr_dict["_name"])
    if weights is not None and weights.ndim == 3:
        isPDBEnsemble = True
        ensemble = PDBEnsemble(title)
    else:
        ensemble = Ensemble(title)
    ensemble.setCoords(attr_dict["_coords"])
    if "_atoms" in attr_dict:
        atoms = attr_dict["_atoms"][0]
    else:
        atoms = None
    ensemble.setAtoms(atoms)
    if "_indices" in attr_dict:
        indices = attr_dict["_indices"]
    else:
        indices = None
    ensemble._indices = indices
    if isPDBEnsemble:
        confs = attr_dict["_confs"]
        ensemble.addCoordset(confs, weights)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: prody/ProDy
Commit Name: b1156f48d60d0dc88a80744102c29b9331754ac7
Time: 2018-02-13
Author: shz66@pitt.edu
File Name: prody/ensemble/functions.py
Class Name:
Method Name: loadEnsemble


Project Name: prody/ProDy
Commit Name: 9bab9cd5fb53481da86f93ab8fb2e880569f74ed
Time: 2018-02-12
Author: shz66@pitt.edu
File Name: prody/ensemble/functions.py
Class Name:
Method Name: loadEnsemble


Project Name: flow-project/flow
Commit Name: 6acd781f6d5ff89971039a0ee21e38d63ebcd1b8
Time: 2017-04-20
Author: kanaadp@gmail.com
File Name: cistar-dev/cistar/core/base_env.py
Class Name: SumoEnvironment
Method Name: __init__


Project Name: tensorflow/cleverhans
Commit Name: 77e8fd53d1a37609aaa64fdc2cfae63cf544b760
Time: 2017-03-26
Author: ngp5056@cse.psu.edu
File Name: cleverhans/attacks.py
Class Name: FastGradientMethod
Method Name: __init__