diff options
author | Rasmus Andersson <rasmus@notion.se> | 2018-08-28 21:40:40 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2018-08-28 21:40:40 +0300 |
commit | 6070a471f114ed641106a74b3e5c61ee7e480eb8 (patch) | |
tree | bd655c6ddae77ee11ac166effe3d4577d94d5a9e /misc/pylib/fontbuild | |
parent | 2b9c05696f5921efe702312c61834bdec68d77c9 (diff) | |
download | inter-6070a471f114ed641106a74b3e5c61ee7e480eb8.tar.xz |
fixes issue with recent numpy upgrade
Diffstat (limited to 'misc/pylib/fontbuild')
-rw-r--r-- | misc/pylib/fontbuild/curveFitPen.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/pylib/fontbuild/curveFitPen.pyx b/misc/pylib/fontbuild/curveFitPen.pyx index 307cf1abf..4b2ee4b34 100644 --- a/misc/pylib/fontbuild/curveFitPen.pyx +++ b/misc/pylib/fontbuild/curveFitPen.pyx @@ -388,7 +388,7 @@ def fitBezier(pts, tangent0=None, tangent3=None): ]) TT = np.concatenate((TT, tangentConstraintsT * 1000)) pout = np.concatenate((pout, tangentConstraintsP * 1000)) - C = np.linalg.lstsq(TT,pout)[0].reshape((2,2), rcond=-1) + C = np.linalg.lstsq(TT, pout, rcond=-1)[0].reshape((2,2)) return np.array([pts[0], C[0], C[1], pts[-1]]) |