Simplify inflating shapes in graph router

This commit is contained in:
Eren Dogan
2023-07-23 21:09:15 -07:00
parent 7119f9a131
commit 54f2e73214
2 changed files with 34 additions and 28 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ class graph_shape(pin_layout):
return self.inflated_from
def inflated_pin(self, spacing=None, multiple=0.5, extra_spacing=0, keep_link=False):
def inflated_pin(self, spacing=None, multiple=0.5, extra_spacing=0):
""" Override the default inflated_pin behavior. """
ll, ur = self.inflate(spacing, multiple)
@@ -62,7 +62,7 @@ class graph_shape(pin_layout):
newll = ll - extra
newur = ur + extra
inflated_area = (newll, newur)
return graph_shape(self.name, inflated_area, self.layer, self if keep_link else None)
return graph_shape(self.name, inflated_area, self.layer, self)
def aligns(self, other):