a6cf50669ef4d7d75a41f4bc172f6ce61396b38b,ilastik/applets/dataSelection/dataSelectionGui.py,DataSelectionGui,_createDatasetInfo,#DataSelectionGui#Any#Any#Any#,538

Before Change


            else:
                // If exactly one of the file"s datasets matches a user"s previous choice, use it.
                if roleIndex not in self._default_h5n5_volumes:
                    self._default_h5n5_volumes[roleIndex] = set()
                previous_selections = self._default_h5n5_volumes[roleIndex]
                possible_auto_selections = previous_selections.intersection(datasetNames)
                if len(possible_auto_selections) == 1:
                    selected_dataset = str(list(possible_auto_selections)[0])
                else:
                    // Ask the user which dataset to choose
                    dlg = H5N5VolumeSelectionDlg(datasetNames, self)
                    if dlg.exec_() == QDialog.Accepted:

After Change


            else:
                auto_inner_paths = self._get_previously_used_inner_paths(roleIndex).intersection(set(datasetNames))
                if len(auto_inner_paths) == 1:
                    selected_dataset = auto_inner_paths.pop()
                else:
                    // Ask the user which dataset to choose
                    dlg = H5N5VolumeSelectionDlg(datasetNames, self)
                    if dlg.exec_() == QDialog.Accepted:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: ilastik/ilastik
Commit Name: a6cf50669ef4d7d75a41f4bc172f6ce61396b38b
Time: 2019-08-16
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: _createDatasetInfo


Project Name: analysiscenter/batchflow
Commit Name: 02098c5c44893ce455aefcfc452aa00bd655987b
Time: 2017-11-15
Author: rhudor@gmail.com
File Name: dataset/models/tf/unet.py
Class Name: UNet
Method Name: body


Project Name: analysiscenter/batchflow
Commit Name: f1a7ea62b17afd9880e83aae0ff6f3996bc1e71d
Time: 2017-12-13
Author: rhudor@gmail.com
File Name: dataset/models/tf/refinenet.py
Class Name: RefineNet
Method Name: body