eaf1ca04df3ae7c864e5b772b0cca2e583eb61b3,deeplabcut/gui/multiple_individuals_refinement_toolbox.py,MainFrame,OnKeyPressed,#MainFrame#Any#,273

Before Change


            inv = self.axes.transData.inverted()
            pos_rel = list(inv.transform(pos_abs))
            pos_rel[1] = (
                self.axes.get_ylim()[0] - pos_rel[1]
            )  // Recall y-axis is inverted
            i = np.nanargmin(
                [self.calc_distance(*dp.point.center, *pos_rel) for dp in self.drs]

After Change


            pos_abs = event.GetPosition()
            inv = self.axes.transData.inverted()
            pos_rel = list(inv.transform(pos_abs))
            y1, y2 = self.axes.get_ylim()
            pos_rel[1] = (
                y1 - pos_rel[1] + y2
            )  // Recall y-axis is inverted
            i = np.nanargmin(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: eaf1ca04df3ae7c864e5b772b0cca2e583eb61b3
Time: 2021-03-22
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/gui/multiple_individuals_refinement_toolbox.py
Class Name: MainFrame
Method Name: OnKeyPressed


Project Name: AlexEMG/DeepLabCut
Commit Name: eaf1ca04df3ae7c864e5b772b0cca2e583eb61b3
Time: 2021-03-22
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/gui/refinement.py
Class Name: MainFrame
Method Name: OnKeyPressed


Project Name: AlexEMG/DeepLabCut
Commit Name: eaf1ca04df3ae7c864e5b772b0cca2e583eb61b3
Time: 2021-03-22
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/gui/multiple_individuals_labeling_toolbox.py
Class Name: MainFrame
Method Name: OnKeyPressed


Project Name: AlexEMG/DeepLabCut
Commit Name: eaf1ca04df3ae7c864e5b772b0cca2e583eb61b3
Time: 2021-03-22
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/gui/labeling_toolbox.py
Class Name: MainFrame
Method Name: OnKeyPressed