53059cec9053a8429b7f0a8f06e6cbe1672b60e7,cellprofiler/modules/tests/test_groups.py,TestGroups,test_02_01_group_on_one,#TestGroups#,118

Before Change


            self.assertTrue(groupings.has_key((plate,)))
            image_set_list = groupings[(plate,)]
            self.assertEqual(len(image_set_list), 3 * 4)
            expected_image_set_list = \
                sorted(filter(lambda x: x[0] == plate, image_sets.keys()))
            for image_set_key, expected_image_set_key in zip(
                image_set_list, expected_image_set_list):
                self.assertEqual(image_set_key, expected_image_set_key)
                
    def test_02_01_group_on_two(self):
        groups = G.Groups()
        groups.wants_groups.value = True
        groups.grouping_metadata[0].image_name.value = "GFP"

After Change


            for image_number in range(1 + (group_number-1) * 12,
                                      1 + group_number * 12):
                for image_name in ("DNA", "GFP"):
                    ftr = "_".join((cpmeas.C_FILE_NAME, image_name))
                    self.assertTrue(
                        m[cpmeas.IMAGE, ftr, image_number].startswith(plate))
                
    def test_02_01_group_on_two(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 53059cec9053a8429b7f0a8f06e6cbe1672b60e7
Time: 2013-01-16
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/tests/test_groups.py
Class Name: TestGroups
Method Name: test_02_01_group_on_one


Project Name: dgasmith/opt_einsum
Commit Name: 43e740fa6ea915e7143b9e58a231042d22ab5587
Time: 2018-08-09
Author: john.gray.14@ucl.ac.uk
File Name: opt_einsum/contract.py
Class Name:
Method Name: contract_path


Project Name: CellProfiler/CellProfiler
Commit Name: 53059cec9053a8429b7f0a8f06e6cbe1672b60e7
Time: 2013-01-16
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/tests/test_groups.py
Class Name: TestGroups
Method Name: test_02_01_group_on_two


Project Name: tensorflow/datasets
Commit Name: 7b270c7526d74355fcf27496ac8ee5878aaa1683
Time: 2018-12-11
Author: rsepassi@google.com
File Name: tensorflow_datasets/scripts/document_datasets.py
Class Name:
Method Name: make_statistics_information