199f387b50df1f32ded6ac5d54b68f08f009661b,deeplabcut/refine_training_dataset/refinement.py,MainFrame,nextImage,#MainFrame#Any#,406

Before Change


            img_name = Path(self.img).name

// Plotting
            self.axes.clear()
            self.figure.delaxes(self.figure.axes[1]) // Removes the axes corresponding to the colorbar
            self.figure,self.axes,self.canvas,self.toolbar = self.image_panel.drawplot(self.img,img_name,self.iter,self.index,self.threshold,self.bodyparts,self.colormap,self.preview)

            im = io.imread(self.img)

After Change


            self.figure.delaxes(self.figure.axes[1]) // Removes the axes corresponding to the colorbar
            self.figure,self.axes,self.canvas,self.toolbar = self.image_panel.drawplot(self.img,img_name,self.iter,self.index,self.threshold,self.bodyparts,self.colormap,self.preview,keep_view=self.view_locked)
            im = io.imread(self.img)
            self.axes.callbacks.connect("xlim_changed", self.onZoom)
            self.axes.callbacks.connect("ylim_changed", self.onZoom)
            if np.max(im) == 0:
                msg = wx.MessageBox("Invalid image. Click Yes to remove", "Error!", wx.YES_NO | wx.ICON_WARNING)
                if msg == 2:
                    self.Dataframe = self.Dataframe.drop(self.index[self.iter])
                    self.index = list(self.Dataframe.iloc[:,0].index)
                self.iter = self.iter - 1

                self.img = os.path.join(self.project_path,self.index[self.iter])
                img_name = Path(self.img).name

                self.figure,self.axes,self.canvas,self.toolbar = self.image_panel.drawplot(self.img,img_name,self.iter,self.index,self.threshold,self.bodyparts,self.colormap,self.preview,keep_view=self.view_locked)
                self.axes.callbacks.connect("xlim_changed", self.onZoom)
                self.axes.callbacks.connect("ylim_changed", self.onZoom)
            MainFrame.plot(self,self.img)
        else:
            self.next.Enable(False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: 199f387b50df1f32ded6ac5d54b68f08f009661b
Time: 2019-09-19
Author: amathis@fas.harvard.edu
File Name: deeplabcut/refine_training_dataset/refinement.py
Class Name: MainFrame
Method Name: nextImage


Project Name: AlexEMG/DeepLabCut
Commit Name: f6744e53558e22efe593c1bcbdb6bc6b61a1f65e
Time: 2019-04-08
Author: jbonaiuto@gmail.com
File Name: deeplabcut/generate_training_dataset/labeling_toolbox.py
Class Name: MainFrame
Method Name: nextImage


Project Name: AlexEMG/DeepLabCut
Commit Name: 199f387b50df1f32ded6ac5d54b68f08f009661b
Time: 2019-09-19
Author: amathis@fas.harvard.edu
File Name: deeplabcut/refine_training_dataset/refinement.py
Class Name: MainFrame
Method Name: nextImage


Project Name: AlexEMG/DeepLabCut
Commit Name: f6744e53558e22efe593c1bcbdb6bc6b61a1f65e
Time: 2019-04-08
Author: jbonaiuto@gmail.com
File Name: deeplabcut/generate_training_dataset/labeling_toolbox.py
Class Name: MainFrame
Method Name: prevImage