MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / delete_data

Method delete_data

deeplabcut/gui/tracklet_toolbox.py:96–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 self.delete_data()
95
96 def delete_data(self):
97 self.press = None
98 DraggablePoint.lock = None
99 self.point.set_animated(False)
100 self.background = None
101 self.final_point = (np.nan, np.nan, self.individual_names, self.bodyParts)
102 self.point.center = (np.nan, np.nan)
103 self.coords.append(self.final_point)
104 self.point.figure.canvas.draw()
105
106 def on_motion(self, event):
107 """During the drag!"""

Callers 1

on_pressMethod · 0.95

Calls 1

drawMethod · 0.80

Tested by

no test coverage detected