numpy deprecration warning

This commit is contained in:
looooo
2020-08-04 19:22:25 +02:00
parent 2a55d11f7b
commit 03f80a288e

View File

@@ -122,15 +122,15 @@ class BevelTooth(object):
ref = reflection3D(pi/2)
pts1 = ref(pts)[::-1]
if self.add_foot:
return(array([
return([
array([pts[0], pts[1]]),
pts[1:],
array(pts[1:]),
array([pts[-1], pts1[0]]),
pts1[:-1],
array(pts1[:-1]),
array([pts1[-2], pts1[-1]])
]))
])
else:
return(array([pts, array([pts[-1], pts1[0]]), pts1]))
return([pts, array([pts[-1], pts1[0]]), pts1])
def _update(self):
self.__init__(z=self.z, clearance=self.clearance,