7d1cc23f0f01bd9a4a946a2bc64fc474c7dcfc82,ilastik/applets/edgeTraining/opEdgeTraining.py,OpEdgeProbabilitiesDict,execute,#OpEdgeProbabilitiesDict#Any#Any#Any#Any#,367

Before Change


        rag = self.Rag.value

        logger.info("Converting edge probabilities to dict...")
        edge_ids = rag.edge_ids
        result[0] = dict(izip(imap(tuple, edge_ids), edge_probabilities))
        logger.info("...done")

    def propagateDirty(self, slot, subindex, roi):

After Change


        if edge_probabilities is None:
            // Edge probabilities are "None" if they haven"t been loaded into the cache yet.
            // Just return 0.0 for all probabilities
            result[0] = { tuple(edge_id) : 0.0 for edge_id in rag.edge_ids }
        else:
            result[0] = dict(izip(imap(tuple, rag.edge_ids), edge_probabilities))
            
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ilastik/ilastik
Commit Name: 7d1cc23f0f01bd9a4a946a2bc64fc474c7dcfc82
Time: 2017-02-24
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/edgeTraining/opEdgeTraining.py
Class Name: OpEdgeProbabilitiesDict
Method Name: execute


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 67fa4171fffad014ef7f072ef56426e52080fcb5
Time: 2016-11-10
Author: cuducos@gmail.com
File Name: src/fetch_suspicious_places.py
Class Name:
Method Name: search_suspicious_around_companies


Project Name: aertslab/pySCENIC
Commit Name: 5b824f9124e8690ce35118cb2ab8ecfe61fad8cc
Time: 2018-02-06
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/regulome.py
Class Name:
Method Name: derive_regulomes