From e09b7f6d426c5b690e411c1018d62946daa4b127 Mon Sep 17 00:00:00 2001 From: Joaquin Matres <4514346+joamatab@users.noreply.github.com> Date: Sun, 9 Feb 2025 15:26:25 -0800 Subject: [PATCH] add radius_loopback --- cspdk/si220/cells/containers.py | 6 ++++-- pyproject.toml | 2 +- uv.lock | 8 ++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/cspdk/si220/cells/containers.py b/cspdk/si220/cells/containers.py index cf0d0a6..7b9e003 100644 --- a/cspdk/si220/cells/containers.py +++ b/cspdk/si220/cells/containers.py @@ -23,6 +23,7 @@ def add_fiber_array_sc( component_name: str | None = None, cross_section: CrossSectionSpec = "xs_sc", gc_rotation: float = -90, + radius_loopback: float = 10, **kwargs, ) -> Component: """Returns component with south routes and grating_couplers. @@ -36,6 +37,7 @@ def add_fiber_array_sc( component_name: optional for the label. cross_section: cross_section function. gc_rotation: fiber coupler rotation in degrees. Defaults to -90. + radius_loopback: optional radius of the loopback bend. Defaults to the cross_section. kwargs: additional arguments. Keyword Args: @@ -58,7 +60,6 @@ def add_fiber_array_sc( input_port_indexes: to connect. pitch: in um. radius: optional radius of the bend. Defaults to the cross_section. - radius_loopback: optional radius of the loopback bend. Defaults to the cross_section. route_backwards: route from component to grating coupler or vice-versa. .. plot:: @@ -83,6 +84,7 @@ def add_fiber_array_sc( gc_rotation=gc_rotation, component_name=component_name, cross_section=cross_section, + radius_loopback=radius_loopback, **kwargs, ) @@ -344,7 +346,7 @@ def pack_doe_grid( PDK.activate() - c = add_fiber_single_sc() + c = add_fiber_array_sc() # c =gf.get_component(gc_sc) # c = pack_doe() c.pprint_ports() diff --git a/pyproject.toml b/pyproject.toml index e03dc56..9d7266d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ classifiers = [ "Operating System :: OS Independent" ] dependencies = [ - "gdsfactory~=8.31.0", + "gdsfactory~=8.32.0", "gplugins[sax]>=1,<2" ] description = "CornerStone PDK" diff --git a/uv.lock b/uv.lock index 8c92f9f..df2d987 100644 --- a/uv.lock +++ b/uv.lock @@ -487,7 +487,7 @@ docs = [ [package.metadata] requires-dist = [ - { name = "gdsfactory", specifier = "~=8.31.0" }, + { name = "gdsfactory", specifier = "~=8.32.0" }, { name = "gplugins", extras = ["sax"], specifier = ">=1,<2" }, { name = "jsondiff", marker = "extra == 'dev'" }, { name = "jupyter-book", marker = "extra == 'docs'", specifier = "==1.0.3" }, @@ -739,7 +739,7 @@ wheels = [ [[package]] name = "gdsfactory" -version = "8.31.0" +version = "8.32.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "attrs" }, @@ -773,9 +773,9 @@ dependencies = [ { name = "typing-extensions" }, { name = "watchdog" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/af/91/be738d576b555e26c2b65a76e497ba2acf7599e30afd7fd71b8d3484d631/gdsfactory-8.31.0.tar.gz", hash = "sha256:ed6e7553d2f929687484cdd506eea747bced6f84e4dd4e85bedb600966d5fe06", size = 474054 } +sdist = { url = "https://files.pythonhosted.org/packages/77/67/0207c7ee8c5731131b239590b518db3b8287b1c816d18647cd4b8d349a28/gdsfactory-8.32.0.tar.gz", hash = "sha256:a163e8490758fd0e14180f172e57059efa31548fcafef39c26bac5500e3cc2ac", size = 473934 } wheels = [ - { url = "https://files.pythonhosted.org/packages/73/6f/bad9c3ca665857b9fa15de486c267b60674e6a0aed11813631c0c5dc02dd/gdsfactory-8.31.0-py3-none-any.whl", hash = "sha256:c1af9af4e28c095945c9feeb54f1802df1d8e1640b6d6f0238013b97b4f90735", size = 664412 }, + { url = "https://files.pythonhosted.org/packages/7c/26/604766b5ae19aacad4986f963218e0d1817c5966ff4e2ebb1aa4f08dc6b7/gdsfactory-8.32.0-py3-none-any.whl", hash = "sha256:00ba9e9501cb4e296fab162033bb0a2aecbc4c8116b7e8825f5b2d8e520e4789", size = 664254 }, ] [[package]]