Remove redundant pins in pin_group constructor. Clean up some code and comments.

This commit is contained in:
Matt Guthaus
2018-11-01 11:31:24 -07:00
parent 2eedc703d1
commit b24c8a42a1
4 changed files with 41 additions and 16 deletions
+8 -1
View File
@@ -149,7 +149,14 @@ class pin_layout:
return False
return True
def contained_by_any(self, shape_list):
""" Checks if shape is contained by any in the list """
for shape in shape_list:
if shape.contains(self):
return True
return False
def overlaps(self, other):
""" Check if a shape overlaps with a rectangle """