diff --git a/gdsfactory/components/bend_s.py b/gdsfactory/components/bend_s.py index 8114af365b..1c767b1f0f 100644 --- a/gdsfactory/components/bend_s.py +++ b/gdsfactory/components/bend_s.py @@ -65,6 +65,7 @@ def bend_s( def get_min_sbend_size( size: Float2 = (None, 10.0), cross_section: CrossSectionSpec = "strip", + num_points: int = 100, **kwargs, ): """ @@ -73,6 +74,7 @@ def get_min_sbend_size( Args: size: in x and y direction. One of them is None, which is the size we need to figure out. cross_section: spec. + num_points: number of points to iterate over between max_size and 0.1 * max_size kwargs: cross_section settings. """ @@ -99,7 +101,7 @@ def get_min_sbend_size( # the max size corresponds to an ellipsoid max_size = 2.5 * np.sqrt(np.abs(min_radius * known_s)) - sizes = np.linspace(max_size, 0.1 * max_size, 100) + sizes = np.linspace(max_size, 0.1 * max_size, num_points) for i, s in enumerate(sizes): sz = copy.deepcopy(size)