From e6e6e9b7d4a57792a9b31502c22ccbbe62ccd91e Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Sat, 25 Nov 2023 22:11:47 +0000 Subject: [PATCH] [Gears] Remove dependency on Deepcopy --- pygears/involute_tooth.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pygears/involute_tooth.py b/pygears/involute_tooth.py index a350116..c171412 100644 --- a/pygears/involute_tooth.py +++ b/pygears/involute_tooth.py @@ -180,7 +180,6 @@ class InvoluteRack(object): self.simplified = False def points(self, num=10): - import copy m, m_n, pitch, pressure_angle_t = self.compute_properties() a = (2 + self.head + self.clearance) * m_n * tan(pressure_angle_t) @@ -198,7 +197,7 @@ class InvoluteRack(object): tooth = trans(tooth).tolist() else: tooth = trans(tooth).tolist() - teeth.append(copy.deepcopy(tooth)) + teeth.append(tooth.copy()) if self.simplified and (i == 3): teeth[-1].pop() teeth[-1].pop()