ff48abed0988fc3d0258288aed7985af737d9574,ilastik/applets/dataSelection/dataSelectionGui.py,DataSelectionGui,addFileNames,#DataSelectionGui#Any#,207

Before Change


            // The GUI will be updated by callbacks that are listening to slot changes
            for i in range(0, len(fileNames)):
                datasetInfo = DatasetInfo()
                datasetInfo.filePath = fileNames[i]
                
                // Allow labels by default if this gui isn"t being used for batch data.
                datasetInfo.allowLabels = ( self.guiMode == GuiMode.Normal )

After Change


            for i, filePath in enumerate(fileNames):
                datasetInfo = DatasetInfo()
                cwd = self.mainOperator.WorkingDirectory.value
                absPath, relPath = getPathVariants(filePath, cwd)

                // Relative by default, unless the file is in a totally different tree from the working directory.
                if len(os.path.commonprefix([cwd, absPath])) > 1: 
                   datasetInfo.filePath = relPath
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: ilastik/ilastik
Commit Name: ff48abed0988fc3d0258288aed7985af737d9574
Time: 2012-10-08
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: addFileNames


Project Name: ilastik/ilastik
Commit Name: 219459f15476426276e24329cdb6f091b5f7cf41
Time: 2019-06-26
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/dataSelectionSerializer.py
Class Name: DataSelectionSerializer
Method Name: importStackAsLocalDataset


Project Name: ilastik/ilastik
Commit Name: aeeb48d960a372bffc86555c53f9d610b4325e20
Time: 2019-06-26
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/dataSelectionSerializer.py
Class Name: DataSelectionSerializer
Method Name: importStackAsLocalDataset


Project Name: ilastik/ilastik
Commit Name: 99ab5a7c65dafab05f2e6c12034420ec6430624a
Time: 2012-05-08
Author: bergs@janelia.hhmi.org
File Name: ilastik-shell/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: updateFilePath