Fix lpp change

This commit is contained in:
Matthew Guthaus 2019-11-08 15:45:25 +00:00
parent 32f1cde897
commit 8d158e9eb5
2 changed files with 4 additions and 4 deletions

View File

@ -360,7 +360,7 @@ class pin_group:
"""
smallest_shape = None
zindex = self.router.get_zindex(pin.layer_num)
zindex = self.router.get_zindex(pin.lpp[0])
(min_width, min_space) = self.router.get_layer_width_space(zindex)
# Now compare it with every other shape to check how much they overlap
@ -469,7 +469,7 @@ class pin_group:
right_connector,
above_connector,
below_connector]
filtered_list = list(filter(lambda x: not x, connector_list))
filtered_list = list(filter(lambda x: x!=None, connector_list))
if (len(filtered_list) > 0):
import copy
bbox_connector = copy.copy(pin)

View File

@ -447,7 +447,7 @@ class router(router_tech):
"""
# Inflate the blockage by half a spacing rule
[ll, ur] = self.convert_blockage_to_tracks(blockage.inflate())
zlayer = self.get_zindex(blockage.layer_num)
zlayer = self.get_zindex(blockage.lpp[0])
blockage_tracks = self.get_blockage_tracks(ll, ur, zlayer)
return blockage_tracks
@ -529,7 +529,7 @@ class router(router_tech):
sufficient_list = set()
insufficient_list = set()
zindex = self.get_zindex(pin.layer_num)
zindex = self.get_zindex(pin.lpp[0])
for x in range(int(ll[0]) + expansion, int(ur[0]) + 1 + expansion):
for y in range(int(ll[1] + expansion), int(ur[1]) + 1 + expansion):
(full_overlap, partial_overlap) = self.convert_pin_coord_to_tracks(pin,