From 754430bca616b61eefb3f296faaee381650beff8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 17 Nov 2018 09:21:59 +0000 Subject: [PATCH] fix python incompatibilities Signed-off-by: Ian Jackson --- curveopt.py | 2 +- moebius.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/curveopt.py b/curveopt.py index 5b8f2de..234b275 100644 --- a/curveopt.py +++ b/curveopt.py @@ -32,7 +32,7 @@ class OptimisedCurve(): db = DiscreteBezier(cp, nt, bezier_constructor=BezierSegment) - fc_input = map(db.point_at_it, range(0, nt+1)) + fc_input = [ x for x in map(db.point_at_it, range(0, nt+1)) ] oc._dbg(repr(fc_input)) for end in (False,True): diff --git a/moebius.py b/moebius.py index 224678a..f4f37b4 100644 --- a/moebius.py +++ b/moebius.py @@ -130,7 +130,7 @@ class Moebius(): assert(nw % 1 == 0) m.nv = nv m.nw = nw - m.nt = nw/2 + m.nt = int(nw/2) m.h = MoebiusHalf(nu=nv*2, nt=m.nt) def _vw2tiu_kw(m, v, w): -- 2.30.2