857cb1f38abfc3f467b6a8e53ae54365e05fcff2,deeplabcut/generate_training_dataset/labeling_toolbox.py,MainFrame,browseDir,#MainFrame#Any#,348

Before Change


        oldBodyParts = self.dataFrame.columns.get_level_values(1)
        _, idx = np.unique(oldBodyParts, return_index=True)
        oldbodyparts2plot =  list(oldBodyParts[np.sort(idx)])
        self.new_bodyparts =  list(set(self.bodyparts) - set(oldbodyparts2plot))

// Checking if user added a new label
        if self.new_bodyparts==[]: // i.e. no new label
            self.figure,self.axes,self.canvas,self.toolbar = self.image_panel.drawplot(self.img,img_name,self.iter,self.index,self.bodyparts,self.colormap)

After Change


        self.markerSize = self.cfg["dotsize"]
        self.alpha = self.cfg["alphavalue"]
        self.colormap = plt.get_cmap(self.cfg["colormap"])
        self.colormap = self.colormap.reversed()
        self.project_path=self.cfg["project_path"]
        self.index =np.sort([fn for fn in glob.glob(os.path.join(self.dir,"*.png")) if ("labeled.png" not in fn)])
        self.statusbar.SetStatusText("Working on folder: {}".format(os.path.split(str(self.dir))[-1]))
        self.relativeimagenames=["labeled"+n.split("labeled")[1] for n in self.index]//[n.split(self.project_path+"/")[1] for n in self.index]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: 857cb1f38abfc3f467b6a8e53ae54365e05fcff2
Time: 2019-02-23
Author: amathis@fas.harvard.edu
File Name: deeplabcut/generate_training_dataset/labeling_toolbox.py
Class Name: MainFrame
Method Name: browseDir


Project Name: albermax/innvestigate
Commit Name: a41eb45ea9245a1e100972ac26c5b69828356c7e
Time: 2018-02-26
Author: alber.maximilian@gmail.com
File Name: innvestigate/utils/keras/graph.py
Class Name:
Method Name: trace_model_execution


Project Name: eth-cscs/reframe
Commit Name: 04808b85421bb7e68611bc4b5b4ae487bdf49dfd
Time: 2018-12-17
Author: karakasis@cscs.ch
File Name: reframe/core/environments.py
Class Name: Environment
Method Name: emit_unload_commands


Project Name: ilastik/ilastik
Commit Name: 61fffec97ae446fbd63b107f3abf62e8296dcb9f
Time: 2014-04-02
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/ioOperators/opDvidVolume.py
Class Name: OpDvidVolume
Method Name: setupOutputs