Merge pull request #10 from Canule/patch-1

smoothing.py - xrange
pull/11/head
Andy Port 2017-02-26 15:10:30 -08:00 committed by GitHub
commit bfe601da99
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ def is_differentiable(path, tol=1e-8):
def kinks(path, tol=1e-8):
"""returns indices of segments that start on a non-differentiable joint."""
kink_list = []
for idx in xrange(len(path)):
for idx in range(len(path)):
if idx == 0 and not path.isclosed():
continue
try: