Skip to content

Commit

Permalink
add report of intersection count
Browse files Browse the repository at this point in the history
  • Loading branch information
mathandy committed Feb 4, 2023
1 parent 31b6f3d commit 3eb2116
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -1536,8 +1536,9 @@ def random_path():
path1 = random_path()
path2 = random_path()
t = time.time()
path1.intersect(path2)
print(f"\nIntersection calculation took {time.time() - t} seconds.\n")
intersections = path1.intersect(path2)
print("\nFound {} intersections in {} seconds.\n"
"".format(len(intersections), time.time() - t))

def test_line_line_0(self):
l0 = Line(start=(25.389999999999997+99.989999999999995j),
Expand Down

0 comments on commit 3eb2116

Please sign in to comment.