Skip to content

Commit

Permalink
python: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Oct 18, 2024
1 parent 5c5efa0 commit f8c5ddc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bindings/python/examples/test_torus_knot.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ def func(pts):

def func_single(v):
pts = np.array([v])
func(pts)
return pts[0]
return func(pts)[0]

if warp_single:
return Manifold.revolve(circle, int(m)).warp(func_single)
Expand Down

0 comments on commit f8c5ddc

Please sign in to comment.