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],

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: 4

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: ncullen93/torchsample
Commit Name: 1344dee35dbacaaaaabdaf452f0dfe74e3ab50e4
Time: 2017-04-19
Author: ncullen@modv-vlan533.0288.apn.wlan.wireless-pennnet.upenn.edu
File Name: torchsample/modules/super_module.py
Class Name: SuperModule
Method Name: evaluate_loader


Project Name: emedvedev/attention-ocr
Commit Name: 4dc7f459148bd3bc14549d36bd7d09910ca917ca
Time: 2018-05-01
Author: edward.medvedev@gmail.com
File Name: aocr/model/model.py
Class Name: Model
Method Name: __init__