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

Commit

Permalink
Clarify keys in Cell.get_polygons (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
heitzmann committed Jan 14, 2022
1 parent 5fac9e3 commit 7170215
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gdspy/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,9 @@ def get_polygons(self, by_spec=False, depth=None):
----------
by_spec : bool or tuple
If True, the return value is a dictionary with the
polygons of each individual pair (layer, datatype).
If set to a tuple of (layer, datatype), only polygons
with that specification are returned.
polygons of each individual pair (layer, datatype), which
are used as keys. If set to a tuple of (layer, datatype),
only polygons with that specification are returned.
depth : integer or None
If not None, defines from how many reference levels to
retrieve polygons. References below this level will result
Expand All @@ -609,7 +609,7 @@ def get_polygons(self, by_spec=False, depth=None):
-------
out : list of array-like[N][2] or dictionary
List containing the coordinates of the vertices of each
polygon, or dictionary with the list of polygons (if
polygon, or dictionary with with the list of polygons (if
`by_spec` is True).
Note
Expand Down

0 comments on commit 7170215

Please sign in to comment.