From 37ebd2d59e8a0c83951223b9a30ecf9c39613656 Mon Sep 17 00:00:00 2001 From: looooo Date: Mon, 13 Feb 2017 21:52:26 +0100 Subject: [PATCH] py3: map --- gearfunc/_Classes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gearfunc/_Classes.py b/gearfunc/_Classes.py index 3dc1752..8fd971b 100644 --- a/gearfunc/_Classes.py +++ b/gearfunc/_Classes.py @@ -133,7 +133,7 @@ class involute_gear(): rotated_pts = pts rot = rotation(-fp.gear.phipart) for i in range(fp.gear.z - 1): - rotated_pts = map(rot, rotated_pts) + rotated_pts = list(map(rot, rotated_pts)) pts.append(numpy.array([pts[-1][-1], rotated_pts[0][0]])) pts += rotated_pts pts.append(numpy.array([pts[-1][-1], pts[0][0]])) @@ -256,7 +256,7 @@ class cycloide_gear(): rotated_pts = pts rot = rotation(-fp.gear.phipart) for i in range(fp.gear.z - 1): - rotated_pts = map(rot, rotated_pts) + rotated_pts = list(map(rot, rotated_pts)) pts.append(numpy.array([pts[-1][-1], rotated_pts[0][0]])) pts += rotated_pts pts.append(numpy.array([pts[-1][-1], pts[0][0]]))