From 03f80a288e94c3cdde02b73cdab07f26e8b10c03 Mon Sep 17 00:00:00 2001 From: looooo Date: Tue, 4 Aug 2020 19:22:25 +0200 Subject: [PATCH] numpy deprecration warning --- pygears/bevel_tooth.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pygears/bevel_tooth.py b/pygears/bevel_tooth.py index cd2e1a7..f6b8586 100644 --- a/pygears/bevel_tooth.py +++ b/pygears/bevel_tooth.py @@ -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,