From: Ian Jackson Date: Sat, 17 Nov 2018 09:21:59 +0000 (+0000) Subject: fix python incompatibilities X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=754430bca616b61eefb3f296faaee381650beff8;p=moebius3.git fix python incompatibilities Signed-off-by: Ian Jackson --- 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):