Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Fix for Cell.get_polygons (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
heitzmann committed Sep 23, 2021
1 parent df28ca3 commit 56b4535
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ Help support Gdspy development by [donating via PayPal](https://www.paypal.com/c

## History of changes

### Version 1.6.8 (Aug 2, 2021)
* Fix in `Cell.get_polygons` with specified layer and datatype.

### Version 1.6.8 (Aug 2, 2021)
* Fix in `boolean` for complex geometries that freeze the operation.

Expand Down
2 changes: 1 addition & 1 deletion gdspy/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ def get_polygons(self, by_spec=False, depth=None):
)

for path in self.paths:
if any(ld == by_spec for ld in zip(path.layers, path.datatype)):
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])
Expand Down

0 comments on commit 56b4535

Please sign in to comment.