From 8217a8416507ef0d05421897f36141388c3fcafd Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 17 May 2022 13:31:23 -0700 Subject: [PATCH] Uniquify overlap points during segment overlap computation. --- compiler/base/pin_layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/base/pin_layout.py b/compiler/base/pin_layout.py index e6a35a0a..82590ee6 100644 --- a/compiler/base/pin_layout.py +++ b/compiler/base/pin_layout.py @@ -511,7 +511,7 @@ class pin_layout: elif other.contains(self): return math.inf else: - intersections = self.compute_overlap_segment(other) + intersections = set(self.compute_overlap_segment(other)) # This is the common case where two pairs of edges overlap # at two points, so just find the distance between those two points if len(intersections) == 2: