54752cfa38468abbab5580fae1a718bb41fe3f31,ilastik/applets/dataSelection/dataSelectionGui.py,DataSelectionGui,handleAddStack,#DataSelectionGui#Any#,289

Before Change


        // Launch the "Open File" dialog
        fileNames = self.getImageFileNamesToOpen(defaultDirectory)

        if len(fileNames) == 1:
            QMessageBox.warning(self, "Invalid selection", "Cannot create stack: You only selected one file.  If your stack is contained in a single file (e.g. a multi-page tiff or hdf5 volume), please use the "Add File" button." )
            return

        // If the user didn"t cancel
        if len(fileNames) > 0:
            PreferencesManager().set("DataSelection", "recent stack image", fileNames[0])
            // Convert into one big string, which is accepted by the stack loading operator
            bigString = "//".join( fileNames )
            self.importStackFromGlobString(bigString, roleIndex)

    def getImageFileNamesToOpen(self, defaultDirectory):
        

After Change


            finally:
                self.guiControlSignal.emit( ControlCommand.Pop )

        req = Request( importStack )
        req.notify_failed( partial(self.handleFailedStackLoad, files ) )
        req.submit()

    @threadRouted
    def handleFailedStackLoad(self, files, exc, exc_info):
        import traceback
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: ilastik/ilastik
Commit Name: 54752cfa38468abbab5580fae1a718bb41fe3f31
Time: 2013-04-19
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: handleAddStack


Project Name: vatlab/SoS
Commit Name: d85c87182a4eb2434bf3bd4d540217ce68125949
Time: 2017-04-07
Author: ben.bog@gmail.com
File Name: sos/sos_task.py
Class Name: TaskEngine
Method Name: run


Project Name: ilastik/ilastik
Commit Name: 890dcf0662a1150b7ea70a8d6af89c5d3cf8d343
Time: 2019-05-07
Author: k-dominik@users.noreply.github.com
File Name: ilastik/workflows/carving/carvingGui.py
Class Name: CarvingGui
Method Name: _exportMeshes