945b5b5e39bf1ced111f58531db6a3cab0d1da7b,ilastik/applets/dataSelection/dataSelectionGui.py,DataSelectionGui,showSelectedDataset,#DataSelectionGui#,677

Before Change


            layerstack.insert( 0, layer )

            volumeEditor = VolumeEditor( layerstack )
            volumeEditorWidget = VolumeEditorWidget(parent=self)
            volumeEditorWidget.init(volumeEditor)

            if imageSlot.ready() and imageSlot.meta.axistags is not None:
                // Use an Op5ifyer adapter to transpose the shape for us.
                op5 = Op5ifyer( graph=imageSlot.graph )
                op5.input.connect( imageSlot )
                dataShape = op5.output.meta.shape
                volumeEditor.dataShape = dataShape

                // We just needed the operator to determine the transposed shape.
                // Disconnect it so it can be garbage collected.
                op5.input.disconnect()
            
            self.volumeEditors[imageSlot] = (volumeEditorWidget, layerstack)
            self.viewerStack.addWidget( volumeEditorWidget )

        // Show the right one
        self.viewerStack.setCurrentWidget( self.volumeEditors[imageSlot][0] )

After Change


        
        // Create if necessary
        if imageSlot not in self.volumeEditors.keys():
            layerViewer = LayerViewerGui( self.topLevelOperator.getLane(row) )

            // Maximize the x-y view by default.
            layerViewer.volumeEditorWidget.quadview.ensureMaximized(2)
            
            self.volumeEditors[imageSlot] = layerViewer
            self.viewerStack.addWidget( layerViewer )

        // Show the right one
        self.viewerStack.setCurrentWidget( self.volumeEditors[imageSlot] )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: ilastik/ilastik
Commit Name: 945b5b5e39bf1ced111f58531db6a3cab0d1da7b
Time: 2013-01-09
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: showSelectedDataset


Project Name: biolab/orange3
Commit Name: ea293bfe2720c8d5687413db12c5d93a68144767
Time: 2014-02-11
Author: jure.bergant@gmail.com
File Name: Orange/widgets/visualize/owheatmap.py
Class Name: OWHeatmap
Method Name: __init__


Project Name: matplotlib/matplotlib
Commit Name: e897855f0db3c4cd9b77e6508d3feb1b4441a363
Time: 2017-10-30
Author: anntzer.lee@gmail.com
File Name: examples/user_interfaces/embedding_in_qt_sgskip.py
Class Name: ApplicationWindow
Method Name: __init__