77bd6e143eaab400f3117519e0178e0a3cba9f7b,cellprofiler/modules/colortogray.py,ColorToGray,display_split,#ColorToGray#Any#Any#,367

Before Change


        if ndisp == 1:
            layout = [(0, 1)]
        elif ndisp == 2:
            layout = [(1, 0), (0, 1)]
        else:
            layout = [(1, 0), (0, 1), (1, 1)]
        for xy, disp in zip(layout, disp_collection):
            figure.subplot_imshow(xy[0], xy[1], disp[0],
                                  title="%s image" % (disp[1]),
                                  colormap=matplotlib.cm.Greys_r,
                                  sharexy=figure.subplot(0, 0))

    def prepare_settings(self, setting_values):
        """Prepare the module to receive the settings

        setting_values - one string per setting to be initialized

After Change


        figure.subplot_imshow(0, 0, input_image,
                              title="Original image")
        
        for eachplot in range(ndisp):
             placenum = eachplot +1
             figure.subplot_imshow(placenum%ncols, placenum/ncols, disp_collection[eachplot][0], 
                                   title="%s" % (disp_collection[eachplot][1]), 
                                   colormap=matplotlib.cm.Greys_r, 
                                   sharexy=figure.subplot(0, 0))

    def prepare_settings(self, setting_values):
        """Prepare the module to receive the settings

        setting_values - one string per setting to be initialized
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 9

Instances


Project Name: CellProfiler/CellProfiler
Commit Name: 77bd6e143eaab400f3117519e0178e0a3cba9f7b
Time: 2017-06-03
Author: bethac07@users.noreply.github.com
File Name: cellprofiler/modules/colortogray.py
Class Name: ColorToGray
Method Name: display_split


Project Name: CellProfiler/CellProfiler
Commit Name: 77bd6e143eaab400f3117519e0178e0a3cba9f7b
Time: 2017-06-03
Author: bethac07@users.noreply.github.com
File Name: cellprofiler/modules/colortogray.py
Class Name: ColorToGray
Method Name: display_split


Project Name: open-mmlab/mmdetection
Commit Name: a6236b789b8f4e2e66c8379199f40ecef9afce06
Time: 2020-04-21
Author: 40779233+ZwwWayne@users.noreply.github.com
File Name: mmdet/core/anchor/anchor_generator.py
Class Name: AnchorGenerator
Method Name: valid_flags


Project Name: geomstats/geomstats
Commit Name: 16d562f2d1a8df49fde1a2374c5e634a7400fd08
Time: 2018-02-04
Author: ninamio78@gmail.com
File Name: geomstats/special_euclidean_group.py
Class Name: SpecialEuclideanGroup
Method Name: group_exponential_barycenter


Project Name: mne-tools/mne-python
Commit Name: beaff02d91a80c2cf12e626d47b3f1678188472d
Time: 2020-04-22
Author: larson.eric.d@gmail.com
File Name: mne/source_space.py
Class Name:
Method Name: _get_volume_label_mask


Project Name: biotite-dev/biotite
Commit Name: 73fc2ce325d8905921be5465817ce71a7cc7e105
Time: 2018-01-12
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/align/pairwise.py
Class Name:
Method Name: simple_score