219459f15476426276e24329cdb6f091b5f7cf41,ilastik/applets/dataSelection/dataSelectionGui.py,DataSelectionGui,_createDatasetInfo,#DataSelectionGui#Any#Any#Any#,549

Before Change


        
        // If the file is in a totally different tree from the cwd,
        // then leave the path as absolute.  Otherwise, override with the relative path.
        if relPath is not None and len(os.path.commonprefix([cwd, absPath])) > 1:
            data_path = relPath
            
        if DatasetInfo.fileHasInternalPaths(data_path):
            datasetNames = DatasetInfo.getPossibleInternalPathsFor(absPath)
            if len(datasetNames) == 0:
                raise RuntimeError(f"{file_extension} file {data_path} has no image datasets")

After Change


        try:
            data_path = filePath.absolute().relative_to(cwd)
        except ValueError:
            data_path = filePath.absolute()

        if DatasetInfo.fileHasInternalPaths(data_path):
            datasetNames = DatasetInfo.getPossibleInternalPathsFor(absPath)
            if len(datasetNames) == 0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: bsmurphy/PyKrige
Commit Name: 2638f41eaec8cde46a09da8a211baaf0c744148b
Time: 2015-02-15
Author: murphybe@gdemac.oce.orst.edu
File Name: pykrige/core.py
Class Name:
Method Name: krige


Project Name: deeptools/HiCExplorer
Commit Name: e8a8edec508fcf886d5c6329ff0729b1cff845e8
Time: 2018-09-04
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/utilities.py
Class Name:
Method Name: exp_obs_matrix_norm