MCPcopy Create free account
hub / github.com/Image-Py/imagepy / commit

Method commit

imagepy/tools/Measure/area_tol.py:25–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 self.buf.append(p)
24
25 def commit(self):
26 if len(self.buf)<3:return False
27 if self.buf[0]!=self.buf[-1]:
28 self.buf.append(self.buf[0])
29 self.body.append(self.buf)
30 self.buf = []
31
32 def snap(self, x, y, lim):
33 cur, cid, minl = None, None, 1000

Callers 5

mouse_downMethod · 0.45
mouse_upMethod · 0.45
mouse_upMethod · 0.45
mouse_upMethod · 0.45
mouse_downMethod · 0.45

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected