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

Before Change


        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


        input_image = workspace.display_data.input_image
        disp_collection = workspace.display_data.disp_collection
        ndisp = len(disp_collection)
        ncols = int(np.ceil((ndisp+1)**0.5))
        subplots = (ncols, (ndisp/ncols)+1)
        figure.set_subplots(subplots)
        figure.subplot_imshow(0, 0, input_image,
                              title="Original image")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: deepchem/deepchem
Commit Name: 5273d873b9154ad706bfdfcf4fc8e2354fd425c0
Time: 2016-01-16
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/__init__.py
Class Name: Model
Method Name: predict


Project Name: senarvi/theanolm
Commit Name: b73fc0c21ea55c7d3357fbf633944e1e67db8bdf
Time: 2016-07-31
Author: seppo.git@marjaniemi.com
File Name: theanolm/scoring/latticedecoder.py
Class Name: LatticeDecoder
Method Name: decode