9303d06331cf6895188591e623cbbca76ea27c3d,cellprofiler/objects.py,Objects,relate_children,#Objects#Any#,300

Before Change


        object number.
        
        if self.has_ijv or children.has_ijv:
            return self.relate_ijv(self.ijv, children.ijv)
        
        parent_labels = self.segmented
        child_labels = children.segmented
        // Apply cropping to the parent if done to the child

After Change


        parent_count = histogram.shape[0] - 1
        child_count = histogram.shape[1] - 1

        parents_of_children = np.argmax(histogram, axis=0)
        //
        // Create a histogram of // of children per parent
        children_per_parent = np.histogram(parents_of_children[1:], np.arange(parent_count + 2))[0][1:]

        //
        // Make sure to remove the background elements at index 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 9303d06331cf6895188591e623cbbca76ea27c3d
Time: 2011-07-12
Author: thouis@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/objects.py
Class Name: Objects
Method Name: relate_children


Project Name: google/deepvariant
Commit Name: e2eab73f998e1ba9d3c47f2c96aa84027ec58c17
Time: 2019-09-27
Author: marianattestad@google.com
File Name: deepvariant/vcf_stats.py
Class Name:
Method Name: _compute_qual_histogram


Project Name: galeone/dynamic-training-bench
Commit Name: 50e10493636fea168ac4ab31d4a673df3df558b2
Time: 2016-12-05
Author: nessuno@nerdz.eu
File Name: models/utils.py
Class Name:
Method Name: weight