Skip to content

Commit

Permalink
Replace 'key' index with 'by_spec' in get_polygons()
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Sterian authored and heitzmann committed Nov 8, 2021
1 parent 9ef86eb commit f5ad195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdspy/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def get_polygons(self, by_spec=False, depth=None):
if any(ld == by_spec for ld in zip(path.layers, path.datatypes)):
path_polygons = path.get_polygons(True)
if by_spec in path_polygons:
polygons.extend(path_polygons[key])
polygons.extend(path_polygons[by_spec])
for reference in self.references:
if depth is None:
next_depth = None
Expand Down

0 comments on commit f5ad195

Please sign in to comment.