Skip to content

Commit

Permalink
Remove ununsed kwargs for add_marker_layer (#2303)
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Nov 9, 2023
1 parent e4f2be6 commit 5d6e69e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gdsfactory/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def __iter__(self):
"""You can iterate over polygons, paths, labels and references."""
return itertools.chain(self.polygons, self.paths, self.labels, self.references)

def get_polygon_enclosure(self):
def get_polygon_enclosure(self) -> Polygon:
"""Returns shapely Polygon with enclosure."""
import shapely

Expand All @@ -274,7 +274,7 @@ def get_polygon_bbox(
bottom: float | None = None,
right: float | None = None,
left: float | None = None,
):
) -> Polygon:
"""Returns shapely Polygon with bounding box.
Args:
Expand Down
5 changes: 1 addition & 4 deletions gdsfactory/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,19 +265,16 @@ def add_marker_layer(
*,
marker_label: str | None = None,
flatten: bool = False,
**kwargs,
) -> Component:
"""Adds a marker layer from the convex hull of the input component.
Used as a decorator for `@gf.cell(decorator=partial(add_marker_layer, marker_layer=...)))`
or as a decorator `c = gf.components.straight(decorator=partial(add_marker_layer, marker_layer=...))`
Args:
marker_layer: The marker layer.
marker_label: An optional text label to add to the marker layer.
flatten: Whether to flatten the component. Should be done only for elementary components.
Keyword Args:
**kwargs: Keyword arguments provided to ``component``.
Returns:
Same component with marker layer applied.
"""
Expand Down

0 comments on commit 5d6e69e

Please sign in to comment.