4b9c72ee5ee2f9f9ea4b47c50035246f73e154b1,prody/dynamics/functions.py,,saveModel,#Any#Any#Any#,28

Before Change


    if isinstance(nma, exANM):
        attr_dict["type"] = "exANM"
        attr_dict["_membrane"] = np.array([nma._membrane, None])
        attr_dict["_combined"] = np.array([nma._combined, None])

    suffix = "." + attr_dict["type"].lower()
    if not filename.lower().endswith(".npz"):
        if not filename.lower().endswith(suffix):

After Change


    //if len(nma) == 0:
    //    raise ValueError("nma instance does not contain data")

    add_attr = kwargs.pop("attr", [])

    dict_ = nma.__dict__
    attr_list = ["_title", "_trace", "_array", "_eigvals", "_vars", "_n_atoms",
                 "_dof", "_n_modes"]

    if add_attr:
        for attr in add_attr:
            if attr not in attr_list:
                attr_list.append(attr)
    if filename is None:
        filename = nma.getTitle().replace(" ", "_")
    if isinstance(nma, GNMBase):
        attr_list.append("_cutoff")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: prody/ProDy
Commit Name: 4b9c72ee5ee2f9f9ea4b47c50035246f73e154b1
Time: 2019-03-01
Author: shz66@pitt.edu
File Name: prody/dynamics/functions.py
Class Name:
Method Name: saveModel


Project Name: prody/ProDy
Commit Name: c7a1c17074540757c03e0df7225521d950b24cc3
Time: 2019-04-09
Author: shz66@pitt.edu
File Name: prody/dynamics/functions.py
Class Name:
Method Name: saveModel


Project Name: ilastik/ilastik
Commit Name: da09a6e992ff6dad66b81ef01e1a209867edcf6b
Time: 2014-04-28
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/opResize.py
Class Name: OpResize
Method Name: setupOutputs