From 71702151dff1326cf7867f83f3957b734bb1779b Mon Sep 17 00:00:00 2001 From: Lucas Heitzmann Gabrielli Date: Fri, 14 Jan 2022 05:56:40 -0300 Subject: [PATCH] Clarify keys in Cell.get_polygons (#203) --- gdspy/library.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdspy/library.py b/gdspy/library.py index c6d76a4..90f90c8 100644 --- a/gdspy/library.py +++ b/gdspy/library.py @@ -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 @@ -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