Skip to content

Commit

Permalink
updated for python3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mathandy committed Aug 22, 2018
1 parent 40a515e commit ee5ab18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/compute-many-points-quickly-using-numpy-arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
also.
Note: The relevant matrix transformation for quadratics can be found in the
svgpathtools.bezier module."""

from __future__ import print_function
import numpy as np
from svgpathtools import *

Expand Down Expand Up @@ -53,4 +53,4 @@ def points_in_each_seg(path, tvals):

pts = points_in_each_seg(testpath, tvals)
pts_check = points_in_each_seg_slow(testpath, tvals)
print np.max(pts - pts_check)
print(np.max(pts - pts_check))

0 comments on commit ee5ab18

Please sign in to comment.