diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 36896c1e..c0a6c7a9 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,29 +1,22 @@ name: Sphinx docs to gh-pages on: + pull_request: push: branches: - main workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build-docs: runs-on: ubuntu-latest - name: Sphinx docs to gh-pages + container: ghcr.io/gdsfactory/gdsfactory:main steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.11" - cache: "pip" - cache-dependency-path: pyproject.toml - - uses: actions/cache@v3 - with: - path: | - ~/.gdsfactory/ - key: 0.0.1 - restore-keys: 0.0.1 + - uses: actions/checkout@v4 - name: Installing the library env: TIDY3D_USER: ${{ secrets.TIDY3D_EMAIL }} @@ -34,7 +27,7 @@ jobs: GDSFACTORY_DISPLAY_TYPE: klayout shell: bash -l {0} run: | - make dev + make install make docs - name: Upload artifact uses: actions/upload-pages-artifact@v2 @@ -43,6 +36,7 @@ jobs: deploy-docs: needs: build-docs + if: ${{ github.ref == 'refs/heads/main' }} permissions: pages: write id-token: write diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ef2945f..e77706cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,13 +8,9 @@ jobs: release_pypi: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') runs-on: ubuntu-latest + container: ghcr.io/gdsfactory/gdsfactory:main steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: 3.x - cache-dependency-path: pyproject.toml + - uses: actions/checkout@v4 - name: Install dependencies run: | python -m pip install --upgrade pip @@ -29,16 +25,11 @@ jobs: release_environment: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') runs-on: ubuntu-latest + container: ghcr.io/gdsfactory/gdsfactory:main permissions: contents: write steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.11' - cache: "pip" - cache-dependency-path: pyproject.toml - name: Install dependencies run: | pip install . diff --git a/.github/workflows/test_code.yml b/.github/workflows/test_code.yml index fd22a3a4..d6f9e625 100644 --- a/.github/workflows/test_code.yml +++ b/.github/workflows/test_code.yml @@ -10,44 +10,34 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - - uses: pre-commit/action@v3.0.0 + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Test pre-commit hooks + run: | + python -m pip install --upgrade pip + pip install pre-commit + pre-commit run -a test_code: - runs-on: ${{ matrix.os }} - strategy: - max-parallel: 12 - matrix: - python-version: ["3.11"] - os: [ubuntu-latest] - + runs-on: ubuntu-latest + container: ghcr.io/gdsfactory/gdsfactory:main steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - cache: "pip" - cache-dependency-path: pyproject.toml + - uses: actions/checkout@v4 - name: Install dependencies run: | - make dev + make install - name: Test with pytest run: pytest tests/ test_code_coverage: runs-on: ubuntu-latest - + container: ghcr.io/gdsfactory/gdsfactory:main steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - cache: "pip" - cache-dependency-path: pyproject.toml + - uses: actions/checkout@v4 - name: Install dependencies run: | - make dev + make install - name: Test with pytest run: | pytest --cov=ubcpdk tests/ @@ -56,37 +46,3 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true - test_docs: - runs-on: ${{ matrix.os }} - strategy: - max-parallel: 12 - matrix: - python-version: [3.11] - os: [ubuntu-latest] - - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.11" - cache: "pip" - cache-dependency-path: pyproject.toml - - name: Install dependencies - run: | - make dev - pip freeze > requirements.txt - - uses: actions/upload-artifact@v3 - with: - name: requirements - path: requirements.txt - - name: Test documentation - env: - TIDY3D_USER: ${{ secrets.TIDY3D_EMAIL }} - TIDY3D_PASS: ${{ secrets.TIDY3D_PASSWORD }} - DISPLAY: 1.0 - DOCS: True - GDSFACTORY_DISPLAY_TYPE: klayout - run: | - mkdir -p $HOME/.tidy3d - make docs diff --git a/.gitignore b/.gitignore index 49146790..e9431708 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ ubcpdk/tests/test_components.gds/gds_run/ ubcpdk/tests/test_components.gds/gds_diff/ .dvc/ .virtual_documents +tests/ref/*.oas # C extensions *.so diff --git a/Makefile b/Makefile index c37f25f3..4391aec0 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,9 @@ install: pip install -e .[dev,docs] - pip install pre-commit - pre-commit install python install_tech.py dev: install + pre-commit install update-pre: pre-commit autoupdate diff --git a/docs/components.rst b/docs/components.rst index b11a1a02..3b463e95 100644 --- a/docs/components.rst +++ b/docs/components.rst @@ -20,6 +20,7 @@ Cells summary bend_euler180_sc bend_euler_sc bend_s + coupler coupler_ring dbg dbr @@ -33,6 +34,7 @@ Cells summary ebeam_crossing4 ebeam_crossing4_2ports ebeam_dc_halfring_straight + ebeam_dc_te1550 ebeam_splitter_adiabatic_swg_te1550 ebeam_splitter_swg_assist_te1310 ebeam_splitter_swg_assist_te1550 @@ -55,6 +57,7 @@ Cells summary mmi1x2 mzi mzi_heater + pad pad_array photonic_wirebond_surfacetaper_1310 photonic_wirebond_surfacetaper_1550 diff --git a/docs/components_plot.rst b/docs/components_plot.rst index c5f52cdb..1c313ee6 100644 --- a/docs/components_plot.rst +++ b/docs/components_plot.rst @@ -187,6 +187,21 @@ bend_s +coupler +---------------------------------------------------- + +.. autofunction:: ubcpdk.components.coupler + +.. plot:: + :include-source: + + import ubcpdk + + c = ubcpdk.components.coupler(gap=0.236, length=20.0, dy=4.0, dx=10.0) + c.plot() + + + coupler_ring ---------------------------------------------------- @@ -382,6 +397,21 @@ ebeam_dc_halfring_straight +ebeam_dc_te1550 +---------------------------------------------------- + +.. autofunction:: ubcpdk.components.ebeam_dc_te1550 + +.. plot:: + :include-source: + + import ubcpdk + + c = ubcpdk.components.ebeam_dc_te1550(gap=0.236, length=20.0, dy=4.0, dx=10.0, cross_section='xs_sc') + c.plot() + + + ebeam_splitter_adiabatic_swg_te1550 ---------------------------------------------------- @@ -692,7 +722,7 @@ mzi import ubcpdk - c = ubcpdk.components.mzi(delta_length=10.0, length_y=2.0, length_x=0.1, with_splitter=True, port_e1_splitter='o2', port_e0_splitter='o3', port_e1_combiner='o2', port_e0_combiner='o3', nbends=2, cross_section='xs_sc', mirror_bot=False, add_optical_ports_arms=False) + c = ubcpdk.components.mzi(delta_length=10.0, length_y=2.0, length_x=0.1, with_splitter=True, port_e1_splitter='o2', port_e0_splitter='o3', port_e1_combiner='o2', port_e0_combiner='o3', nbends=2, cross_section='xs_sc', mirror_bot=False, add_optical_ports_arms=False, add_electrical_ports_bot=True) c.plot() @@ -707,7 +737,22 @@ mzi_heater import ubcpdk - c = ubcpdk.components.mzi_heater(delta_length=10.0, length_y=2.0, length_x=200, straight_x_top='straight_heater_metal', with_splitter=True, port_e1_splitter='o2', port_e0_splitter='o3', port_e1_combiner='o2', port_e0_combiner='o3', nbends=2, cross_section='xs_sc', mirror_bot=False, add_optical_ports_arms=False) + c = ubcpdk.components.mzi_heater(delta_length=10.0, length_y=2.0, length_x=200, straight_x_top='straight_heater_metal', with_splitter=True, port_e1_splitter='o2', port_e0_splitter='o3', port_e1_combiner='o2', port_e0_combiner='o3', nbends=2, cross_section='xs_sc', mirror_bot=False, add_optical_ports_arms=False, add_electrical_ports_bot=True) + c.plot() + + + +pad +---------------------------------------------------- + +.. autofunction:: ubcpdk.components.pad + +.. plot:: + :include-source: + + import ubcpdk + + c = ubcpdk.components.pad(size=(75, 75), layer=(12, 0), bbox_layers=((13, 0),), bbox_offsets=(-1.8,), port_inclusion=0) c.plot() @@ -842,7 +887,7 @@ spiral import ubcpdk - c = ubcpdk.components.spiral(N=6, x_inner_length_cutback=300.0, x_inner_offset=0.0, y_straight_inner_top=0.0, xspacing=3.0, yspacing=3.0, cross_section='xs_sc', with_inner_ports=False, y_straight_outer_offset=0.0, inner_loop_spacing_offset=0.0) + c = ubcpdk.components.spiral(N=6, x_inner_length_cutback=300.0, x_inner_offset=0.0, y_straight_inner_top=0.0, xspacing=3.0, yspacing=3.0, cross_section='xs_sc', with_inner_ports=False, y_straight_outer_offset=0.0, inner_loop_spacing_offset=0.0, mirror_straight=False) c.plot() @@ -977,5 +1022,5 @@ via_stack_heater_mtop import ubcpdk - c = ubcpdk.components.via_stack_heater_mtop(size=(10, 10), layers=((11, 0), (12, 0)), vias=(None, None), correct_size=True) + c = ubcpdk.components.via_stack_heater_mtop(size=(10, 10), layers=((11, 0), (12, 0)), vias=(None, None), correct_size=True, slot_horizontal=False, slot_vertical=False) c.plot() diff --git a/docs/notebooks/00_layout.ipynb b/docs/notebooks/00_layout.ipynb index ea373992..290b3b7e 100644 --- a/docs/notebooks/00_layout.ipynb +++ b/docs/notebooks/00_layout.ipynb @@ -20,9 +20,7 @@ "import gdsfactory as gf\n", "\n", "import ubcpdk\n", - "import ubcpdk.components as uc\n", - "\n", - "gf.CONF.display_type = \"klayout\"" + "import ubcpdk.components as uc" ] }, { @@ -290,12 +288,9 @@ "from ubcpdk.tech import LAYER\n", "\n", "\n", - "gf.CONF.display_type = \"klayout\"\n", "size = (440, 470)\n", "add_gc = uc.add_fiber_array\n", - "pack = partial(\n", - " gf.pack, max_size=size, add_ports_prefix=False, add_ports_suffix=False, spacing=2\n", - ")\n", + "\n", "\n", "@gf.cell\n", "def EBeam_JoaquinMatres_1() -> gf.Component:\n", @@ -314,21 +309,18 @@ " for dw in [50e-3, 100e-3, 150e-3, 200e-3]\n", " ]\n", " e += [add_gc(uc.ring_with_crossing())]\n", - " e += [\n", - " add_gc(\n", - " uc.ring_with_crossing(port_name=\"o2\", with_component=False)\n", - " )\n", - " ]\n", + " e += [add_gc(uc.ring_with_crossing(port_name=\"o2\", with_component=False))]\n", "\n", " c = gf.Component()\n", - " _ = c << pack(e)[0]\n", + " _ = c << gf.pack(e, max_size=size, spacing=2)[0]\n", " _ = c << gf.components.rectangle(size=size, layer=LAYER.FLOORPLAN)\n", " return c\n", "\n", + "\n", "gf.clear_cache()\n", "c = EBeam_JoaquinMatres_1()\n", - "c.show() # show in klayout\n", - "c.plot() # plot in notebook" + "c.show() # show in klayout\n", + "c.plot() # plot in notebook" ] }, { @@ -368,13 +360,14 @@ " )\n", "\n", " c = gf.Component()\n", - " _ = c << pack(e)[0]\n", + " _ = c << gf.pack(e, max_size=size, spacing=2)[0]\n", " _ = c << gf.components.rectangle(size=size, layer=LAYER.FLOORPLAN)\n", " return c\n", "\n", + "\n", "c = EBeam_JoaquinMatres_2()\n", - "c.show() # show in klayout\n", - "c.plot() # plot in notebook" + "c.show() # show in klayout\n", + "c.plot() # plot in notebook" ] }, { @@ -393,19 +386,17 @@ " e += [add_gc(uc.ebeam_bdc_te1550())]\n", " e += [add_gc(uc.ebeam_y_1550(), optical_routing_type=1)]\n", " e += [add_gc(uc.ebeam_y_adiabatic_tapers(), optical_routing_type=1)]\n", - " e += [\n", - " add_gc(uc.straight(), component_name=f\"straight_{i}\")\n", - " for i in range(2)\n", - " ]\n", + " e += [add_gc(uc.straight(), component_name=f\"straight_{i}\") for i in range(2)]\n", " c = gf.Component()\n", - " _ = c << pack(e)[0]\n", + " _ = c << gf.pack(e, max_size=size, spacing=2)[0]\n", " _ = c << gf.components.rectangle(size=size, layer=LAYER.FLOORPLAN)\n", " return c\n", "\n", + "\n", "gf.clear_cache()\n", "c = EBeam_JoaquinMatres_3()\n", - "c.show() # show in klayout\n", - "c.plot() # plot in notebook" + "c.show() # show in klayout\n", + "c.plot() # plot in notebook" ] }, { @@ -430,14 +421,15 @@ "\n", " e = mzis_gc + mzis_heater_gc\n", " c = gf.Component()\n", - " _ = c << pack(e)[0]\n", + " _ = c << gf.pack(e, max_size=size, spacing=2)[0]\n", " _ = c << gf.components.rectangle(size=size, layer=LAYER.FLOORPLAN)\n", " return c\n", "\n", + "\n", "gf.clear_cache()\n", "c = EBeam_JoaquinMatres_4()\n", - "c.show() # show in klayout\n", - "c.plot() # plot in notebook" + "c.show() # show in klayout\n", + "c.plot() # plot in notebook" ] }, { @@ -455,14 +447,15 @@ " rings_gc = [uc.add_fiber_array_pads_rf(ring) for ring in rings]\n", "\n", " c = gf.Component()\n", - " _ = c << pack(rings_gc)[0]\n", + " _ = c << gf.pack(rings_gc, max_size=size, spacing=2)[0]\n", " _ = c << gf.components.rectangle(size=size, layer=LAYER.FLOORPLAN)\n", " return c\n", "\n", + "\n", "gf.clear_cache()\n", "c = EBeam_JoaquinMatres_5()\n", - "c.show() # show in klayout\n", - "c.plot() # plot in notebook" + "c.show() # show in klayout\n", + "c.plot() # plot in notebook" ] }, { @@ -493,7 +486,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.5" } }, "nbformat": 4, diff --git a/docs/notebooks/12_sim_plugins_tidy3d.ipynb b/docs/notebooks/12_sim_plugins_tidy3d.ipynb index ff8e0958..b8135467 100644 --- a/docs/notebooks/12_sim_plugins_tidy3d.ipynb +++ b/docs/notebooks/12_sim_plugins_tidy3d.ipynb @@ -261,7 +261,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.5" } }, "nbformat": 4, diff --git a/docs/notebooks/14_sax_tidy3d.ipynb b/docs/notebooks/14_sax_tidy3d.ipynb index 5a4cb943..d89a883c 100644 --- a/docs/notebooks/14_sax_tidy3d.ipynb +++ b/docs/notebooks/14_sax_tidy3d.ipynb @@ -491,9 +491,7 @@ "outputs": [], "source": [ "delta_length = 10\n", - "mzi_component = gf.components.mzi_phase_shifter_top_heater_metal(\n", - " delta_length=delta_length\n", - ")\n", + "mzi_component = gf.components.mzi_phase_shifter(delta_length=delta_length)\n", "mzi_component.plot()" ] }, @@ -569,9 +567,7 @@ "metadata": {}, "outputs": [], "source": [ - "mzi_component = gf.components.mzi_phase_shifter_top_heater_metal(\n", - " delta_length=delta_length\n", - ")\n", + "mzi_component = gf.components.mzi_phase_shifter(delta_length=delta_length)\n", "netlist = mzi_component.get_netlist()\n", "mzi_circuit, _ = sax.circuit(netlist=netlist, models=models)\n", "S = mzi_circuit(wl=1.55)\n", @@ -637,7 +633,7 @@ "source": [ "mzi_yaml = mzi_component.get_netlist_yaml()\n", "mzi_component2 = gf.read.from_yaml(mzi_yaml)\n", - "fig = mzi_component2.plot(label_aliases=True)" + "fig = mzi_component2.plot()" ] }, { @@ -702,7 +698,7 @@ "\n", "\n", "nm = 1e-3\n", - "c = variable_splitter(delta_length=60 * nm, cache=False)\n", + "c = variable_splitter(delta_length=60 * nm)\n", "c.plot()" ] }, @@ -793,7 +789,7 @@ " )\n", "\n", "\n", - "c = broadband_coupler(delta_length=120 * nm, cache=False)\n", + "c = broadband_coupler(delta_length=120 * nm)\n", "c.plot()" ] }, @@ -804,7 +800,7 @@ "metadata": {}, "outputs": [], "source": [ - "c = broadband_coupler(delta_length=164 * nm, cache=False)\n", + "c = broadband_coupler(delta_length=164 * nm)\n", "models = {\n", " \"bend_euler\": gs.models.bend,\n", " \"coupler\": coupler50,\n", @@ -861,7 +857,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.5" } }, "nbformat": 4, diff --git a/docs/notebooks/21_schematic_driven_layout.ipynb b/docs/notebooks/21_schematic_driven_layout.ipynb index 27ecde18..bf83a26d 100644 --- a/docs/notebooks/21_schematic_driven_layout.ipynb +++ b/docs/notebooks/21_schematic_driven_layout.ipynb @@ -130,7 +130,7 @@ "metadata": {}, "outputs": [], "source": [ - "se.instances[\"mmi1\"].settings.full" + "se.instances[\"mmi1\"].settings" ] }, { @@ -154,8 +154,8 @@ "se.update_settings(\"mmi2\", gap_mmi=0.7)\n", "\n", "for inst_name, inst in se.instances.items():\n", - " if inst.settings.changed:\n", - " print(f\"{inst_name}: {inst.settings.changed}\")" + " if inst.settings:\n", + " print(f\"{inst_name}: {inst.settings}\")" ] }, { @@ -357,6 +357,14 @@ "plt.grid(True)\n", "plt.show()" ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "b79dbf09", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { @@ -378,7 +386,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.5" } }, "nbformat": 4, diff --git a/docs/notebooks/sdl_demo.pic.yml b/docs/notebooks/sdl_demo.pic.yml index 2e0c634f..e483f706 100644 --- a/docs/notebooks/sdl_demo.pic.yml +++ b/docs/notebooks/sdl_demo.pic.yml @@ -9,10 +9,12 @@ instances: settings: {gap_mmi: 0.7} s1: component: straight - settings: {length: 20} + settings: {length: 20, npoints: 2, layer: null, width: null, add_pins: true, cross_section: xs_sc, + add_bbox: null, post_process: null} s2: component: straight - settings: {length: 40} + settings: {length: 40, npoints: 2, layer: null, width: null, add_pins: true, cross_section: xs_sc, + add_bbox: null, post_process: null} placements: mmi1: {x: null, y: null, port: null, rotation: 0.0, dx: -22.832156230736544, dy: -0.9358105716724547, mirror: null} diff --git a/docs/notebooks/test.schem.yml b/docs/notebooks/test.schem.yml index 6f7e5293..f0c3b0fa 100644 --- a/docs/notebooks/test.schem.yml +++ b/docs/notebooks/test.schem.yml @@ -8,10 +8,12 @@ instances: settings: {gap_mmi: 0.7} s1: component: straight - settings: {length: 20} + settings: {length: 20, npoints: 2, layer: null, width: null, add_pins: true, cross_section: xs_sc, + add_bbox: null, post_process: null} s2: component: straight - settings: {length: 40} + settings: {length: 40, npoints: 2, layer: null, width: null, add_pins: true, cross_section: xs_sc, + add_bbox: null, post_process: null} schematic_placements: mmi1: {x: null, y: null, port: null, rotation: 0.0, dx: -22.832156230736544, dy: -0.9358105716724547, mirror: null} diff --git a/pyproject.toml b/pyproject.toml index 01a67775..c3c9ef53 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,9 +15,8 @@ classifiers = [ "Operating System :: OS Independent" ] dependencies = [ - "gdsfactory[cad]==7.8.18", - "gplugins[tidy3d,sax,schematic]>=0.8.4,<0.9.0", - 'siepic==0.5.3' + "gdsfactory==7.13.0", + "gplugins[tidy3d,sax,schematic]>=0.9.13,<0.10" ] description = "ubcpdk pdk" keywords = ["python"] @@ -40,26 +39,6 @@ docs = [ "jupyter-book==0.15.1" ] -[tool.black] -exclude = ''' # Specify the files/dirs that should be ignored by the black formatter -/( - \.eggs - | \.git - | \.hg - | \.mypy_cache - | \.tox - | \.venv - | env - | _build - | buck-out - | build - | dist -)/ -''' -include = '\.pyi?$' -line-length = 88 -target-version = ['py310'] - [tool.mypy] python_version = "3.10" strict = true diff --git a/tests/ref/add_electrical_pads_top_dc_ring_single_heater_add_electrical_pads_top_dc_c229db85.gds b/tests/ref/add_electrical_pads_top_dc_ring_single_heater_add_electrical_pads_top_dc_c229db85.gds new file mode 100644 index 00000000..2b82021c Binary files /dev/null and b/tests/ref/add_electrical_pads_top_dc_ring_single_heater_add_electrical_pads_top_dc_c229db85.gds differ diff --git a/tests/ref/add_electrical_pads_top_dc_ring_single_heater_add_electrical_pads_top_dc_cc2475fe.gds b/tests/ref/add_electrical_pads_top_dc_ring_single_heater_add_electrical_pads_top_dc_cc2475fe.gds new file mode 100644 index 00000000..9f2ddc62 Binary files /dev/null and b/tests/ref/add_electrical_pads_top_dc_ring_single_heater_add_electrical_pads_top_dc_cc2475fe.gds differ diff --git a/tests/ref/add_electrical_pads_top_ring_single_heater_add_electrical_pads_top_c229db85.gds b/tests/ref/add_electrical_pads_top_ring_single_heater_add_electrical_pads_top_c229db85.gds new file mode 100644 index 00000000..e3702257 Binary files /dev/null and b/tests/ref/add_electrical_pads_top_ring_single_heater_add_electrical_pads_top_c229db85.gds differ diff --git a/tests/ref/add_electrical_pads_top_ring_single_heater_add_electrical_pads_top_cc2475fe.gds b/tests/ref/add_electrical_pads_top_ring_single_heater_add_electrical_pads_top_cc2475fe.gds new file mode 100644 index 00000000..1bddee7a Binary files /dev/null and b/tests/ref/add_electrical_pads_top_ring_single_heater_add_electrical_pads_top_cc2475fe.gds differ diff --git a/tests/ref/add_fiber_array_add_fiber_array_add_fiber_array.gds b/tests/ref/add_fiber_array_add_fiber_array_add_fiber_array.gds new file mode 100644 index 00000000..1a1a297c Binary files /dev/null and b/tests/ref/add_fiber_array_add_fiber_array_add_fiber_array.gds differ diff --git a/tests/ref/add_fiber_array_add_fiber_array_add_fiber_array_componentdbr_cavity.gds b/tests/ref/add_fiber_array_add_fiber_array_add_fiber_array_componentdbr_cavity.gds new file mode 100644 index 00000000..19525598 Binary files /dev/null and b/tests/ref/add_fiber_array_add_fiber_array_add_fiber_array_componentdbr_cavity.gds differ diff --git a/tests/ref/add_fiber_array_pads_rf.gds b/tests/ref/add_fiber_array_pads_rf.gds index 6def72fd..699303cd 100644 Binary files a/tests/ref/add_fiber_array_pads_rf.gds and b/tests/ref/add_fiber_array_pads_rf.gds differ diff --git a/tests/ref/bend_euler_sc_bend_euler_sc_angle180.gds b/tests/ref/bend_euler_sc_bend_euler_sc_angle180.gds new file mode 100644 index 00000000..dda0a44f Binary files /dev/null and b/tests/ref/bend_euler_sc_bend_euler_sc_angle180.gds differ diff --git a/tests/ref/coupler_coupler_17b65cbd.gds b/tests/ref/coupler_coupler_17b65cbd.gds new file mode 100644 index 00000000..67855fc5 Binary files /dev/null and b/tests/ref/coupler_coupler_17b65cbd.gds differ diff --git a/tests/ref/coupler_coupler_3aefe116.gds b/tests/ref/coupler_coupler_3aefe116.gds new file mode 100644 index 00000000..937b39aa Binary files /dev/null and b/tests/ref/coupler_coupler_3aefe116.gds differ diff --git a/tests/ref/coupler_coupler_4abc60df.gds b/tests/ref/coupler_coupler_4abc60df.gds new file mode 100644 index 00000000..0e973fb8 Binary files /dev/null and b/tests/ref/coupler_coupler_4abc60df.gds differ diff --git a/tests/ref/coupler_coupler_faa24fa1.gds b/tests/ref/coupler_coupler_faa24fa1.gds new file mode 100644 index 00000000..3c3029e6 Binary files /dev/null and b/tests/ref/coupler_coupler_faa24fa1.gds differ diff --git a/tests/ref/coupler_coupler_fcfc891f.gds b/tests/ref/coupler_coupler_fcfc891f.gds new file mode 100644 index 00000000..9bcf20fe Binary files /dev/null and b/tests/ref/coupler_coupler_fcfc891f.gds differ diff --git a/tests/ref/coupler_ring_coupler_ring_08b15e76.gds b/tests/ref/coupler_ring_coupler_ring_08b15e76.gds new file mode 100644 index 00000000..18de1af3 Binary files /dev/null and b/tests/ref/coupler_ring_coupler_ring_08b15e76.gds differ diff --git a/tests/ref/coupler_ring_coupler_ring_3a87bf6f.gds b/tests/ref/coupler_ring_coupler_ring_3a87bf6f.gds new file mode 100644 index 00000000..138e9472 Binary files /dev/null and b/tests/ref/coupler_ring_coupler_ring_3a87bf6f.gds differ diff --git a/tests/ref/dbg.gds b/tests/ref/dbg.gds index dc680a33..3484904b 100644 Binary files a/tests/ref/dbg.gds and b/tests/ref/dbg.gds differ diff --git a/tests/ref/dbr_cavity.gds b/tests/ref/dbr_cavity.gds index 1ed62a60..572484a7 100644 Binary files a/tests/ref/dbr_cavity.gds and b/tests/ref/dbr_cavity.gds differ diff --git a/tests/ref/ebeam_dc_halfring_straight.gds b/tests/ref/ebeam_dc_halfring_straight.gds index c24a06c8..44121029 100644 Binary files a/tests/ref/ebeam_dc_halfring_straight.gds and b/tests/ref/ebeam_dc_halfring_straight.gds differ diff --git a/tests/ref/mmi1x2_mmi1x2_3aefe116.gds b/tests/ref/mmi1x2_mmi1x2_3aefe116.gds new file mode 100644 index 00000000..6e85b261 Binary files /dev/null and b/tests/ref/mmi1x2_mmi1x2_3aefe116.gds differ diff --git a/tests/ref/mmi1x2_mmi1x2_4abc60df.gds b/tests/ref/mmi1x2_mmi1x2_4abc60df.gds new file mode 100644 index 00000000..a716420e Binary files /dev/null and b/tests/ref/mmi1x2_mmi1x2_4abc60df.gds differ diff --git a/tests/ref/mmi1x2_mmi1x2_faa24fa1.gds b/tests/ref/mmi1x2_mmi1x2_faa24fa1.gds new file mode 100644 index 00000000..7bf6da5d Binary files /dev/null and b/tests/ref/mmi1x2_mmi1x2_faa24fa1.gds differ diff --git a/tests/ref/mzi_mzi_227e0d17.gds b/tests/ref/mzi_mzi_227e0d17.gds new file mode 100644 index 00000000..22661159 Binary files /dev/null and b/tests/ref/mzi_mzi_227e0d17.gds differ diff --git a/tests/ref/mzi_mzi_969a97bd.gds b/tests/ref/mzi_mzi_969a97bd.gds new file mode 100644 index 00000000..3c01932c Binary files /dev/null and b/tests/ref/mzi_mzi_969a97bd.gds differ diff --git a/tests/ref/pad_array_pad_array_2e24007e.gds b/tests/ref/pad_array_pad_array_2e24007e.gds new file mode 100644 index 00000000..f6d6fb04 Binary files /dev/null and b/tests/ref/pad_array_pad_array_2e24007e.gds differ diff --git a/tests/ref/pad_array_pad_array_ccd03f0e.gds b/tests/ref/pad_array_pad_array_ccd03f0e.gds new file mode 100644 index 00000000..18345955 Binary files /dev/null and b/tests/ref/pad_array_pad_array_ccd03f0e.gds differ diff --git a/tests/ref/pad_pad_1b1ab63c.gds b/tests/ref/pad_pad_1b1ab63c.gds new file mode 100644 index 00000000..6d608a23 Binary files /dev/null and b/tests/ref/pad_pad_1b1ab63c.gds differ diff --git a/tests/ref/pad_pad_a56a8c7f.gds b/tests/ref/pad_pad_a56a8c7f.gds new file mode 100644 index 00000000..e42202e2 Binary files /dev/null and b/tests/ref/pad_pad_a56a8c7f.gds differ diff --git a/tests/ref/ring_double_heater_ring_double_heater_38b8e07a.gds b/tests/ref/ring_double_heater_ring_double_heater_38b8e07a.gds new file mode 100644 index 00000000..90d71ffb Binary files /dev/null and b/tests/ref/ring_double_heater_ring_double_heater_38b8e07a.gds differ diff --git a/tests/ref/ring_double_heater_ring_double_heater_ef2a39cb.gds b/tests/ref/ring_double_heater_ring_double_heater_ef2a39cb.gds new file mode 100644 index 00000000..7e523e81 Binary files /dev/null and b/tests/ref/ring_double_heater_ring_double_heater_ef2a39cb.gds differ diff --git a/tests/ref/ring_double_ring_double_22be2ac6.gds b/tests/ref/ring_double_ring_double_22be2ac6.gds new file mode 100644 index 00000000..afa5b855 Binary files /dev/null and b/tests/ref/ring_double_ring_double_22be2ac6.gds differ diff --git a/tests/ref/ring_double_ring_double_db0e78e4.gds b/tests/ref/ring_double_ring_double_db0e78e4.gds new file mode 100644 index 00000000..56d1822f Binary files /dev/null and b/tests/ref/ring_double_ring_double_db0e78e4.gds differ diff --git a/tests/ref/ring_single_dut_ring_single_dut_6353ed6e.gds b/tests/ref/ring_single_dut_ring_single_dut_6353ed6e.gds new file mode 100644 index 00000000..22415d5f Binary files /dev/null and b/tests/ref/ring_single_dut_ring_single_dut_6353ed6e.gds differ diff --git a/tests/ref/ring_single_dut_ring_single_dut_b930ab5b.gds b/tests/ref/ring_single_dut_ring_single_dut_b930ab5b.gds new file mode 100644 index 00000000..3f46a04a Binary files /dev/null and b/tests/ref/ring_single_dut_ring_single_dut_b930ab5b.gds differ diff --git a/tests/ref/ring_single_heater_ring_single_heater_04aaba3d.gds b/tests/ref/ring_single_heater_ring_single_heater_04aaba3d.gds new file mode 100644 index 00000000..826ee2d6 Binary files /dev/null and b/tests/ref/ring_single_heater_ring_single_heater_04aaba3d.gds differ diff --git a/tests/ref/ring_single_heater_ring_single_heater_7ab636b5.gds b/tests/ref/ring_single_heater_ring_single_heater_7ab636b5.gds new file mode 100644 index 00000000..937ff115 Binary files /dev/null and b/tests/ref/ring_single_heater_ring_single_heater_7ab636b5.gds differ diff --git a/tests/ref/ring_single_ring_single_7c86ae28.gds b/tests/ref/ring_single_ring_single_7c86ae28.gds new file mode 100644 index 00000000..554c6ae2 Binary files /dev/null and b/tests/ref/ring_single_ring_single_7c86ae28.gds differ diff --git a/tests/ref/ring_single_ring_single_b377fd64.gds b/tests/ref/ring_single_ring_single_b377fd64.gds new file mode 100644 index 00000000..3225317b Binary files /dev/null and b/tests/ref/ring_single_ring_single_b377fd64.gds differ diff --git a/tests/ref/spiral_external_io.gds b/tests/ref/spiral_external_io.gds index ce28b50a..20a8855d 100644 Binary files a/tests/ref/spiral_external_io.gds and b/tests/ref/spiral_external_io.gds differ diff --git a/tests/ref/straight_straight_6cf27063.gds b/tests/ref/straight_straight_6cf27063.gds new file mode 100644 index 00000000..f617c219 Binary files /dev/null and b/tests/ref/straight_straight_6cf27063.gds differ diff --git a/tests/ref/terminator_short.gds b/tests/ref/terminator_short.gds index 6a7162e2..047fad65 100644 Binary files a/tests/ref/terminator_short.gds and b/tests/ref/terminator_short.gds differ diff --git a/tests/ref/via_stack_via_stack_627f28a4.gds b/tests/ref/via_stack_via_stack_627f28a4.gds new file mode 100644 index 00000000..8abc2b4b Binary files /dev/null and b/tests/ref/via_stack_via_stack_627f28a4.gds differ diff --git a/tests/test_components.py b/tests/test_components.py index 58279767..3af02499 100644 --- a/tests/test_components.py +++ b/tests/test_components.py @@ -14,6 +14,7 @@ "add_pins_siepic", "add_pins_siepic_metal", "dbr", + "dbg", "add_pins_bbox_siepic", "add_pads", "add_pins_bbox_siepic_remove_layers", diff --git a/tests/test_components/test_pdk_settings_add_fiber_array_.yml b/tests/test_components/test_pdk_settings_add_fiber_array_.yml index a8a288e2..c7d465c0 100644 --- a/tests/test_components/test_pdk_settings_add_fiber_array_.yml +++ b/tests/test_components/test_pdk_settings_add_fiber_array_.yml @@ -1,102 +1,55 @@ -name: straight_8c41fd35_add_fiber_array_3c7e0cfe_add_fiber_array +function: add_fiber_array +info: + length: 10.0 + route_info_length: 10.0 + route_info_type: xs_sc + route_info_weight: 10.0 + route_info_xs_sc_length: 10.0 + width: 0.5 +module: ubcpdk.components +name: add_fiber_array_add_fiber_array settings: - changed: {} - child: null - default: - component: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - component_name: null - cross_section: xs_sc - fanout_length: 0.0 - gc_port_name: o1 - get_input_labels_function: - function: get_input_labels - grating_coupler: - function: gc_te1550 - layer_label: - - 10 - - 0 - optical_routing_type: 0 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - with_loopback: false - full: - component: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - component_name: null - cross_section: xs_sc - fanout_length: 0.0 - gc_port_name: o1 - get_input_labels_function: - function: get_input_labels - grating_coupler: - function: gc_te1550 - layer_label: - - 10 - - 0 - optical_routing_type: 0 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - with_loopback: false - function_name: add_fiber_array - info: - cross_section: xs_sc - grating_coupler: - library: Design kits/ebeam - model: ebeam_gc_te1550 - polarization: te - wavelength: 1.55 - length: 10.0 - route_info: - length: 10.0 - type: xs_sc - weight: 10.0 - xs_sc_length: 10.0 - width: 0.5 - info_version: 2 - module: ubcpdk.components - name: straight_8c41fd35_add_fiber_array_3c7e0cfe_add_fiber_array + component: + function: straight + module: gdsfactory.components.straight + settings: + add_bbox: + function: add_padding + module: gdsfactory.add_padding + settings: + bottom: 0.5 + default: 0 + layers: + - - 68 + - 0 + top: 0.5 + cross_section: xs_sc + component_name: null + cross_section: xs_sc + fanout_length: 0.0 + gc_port_name: o1 + get_input_labels_function: + function: get_input_labels + grating_coupler: + function: gc_te1550 + layer_label: + - 10 + - 0 + optical_routing_type: 0 + post_process: null + straight: + function: straight + module: gdsfactory.components.straight + settings: + add_bbox: + function: add_padding + module: gdsfactory.add_padding + settings: + bottom: 0.5 + default: 0 + layers: + - - 68 + - 0 + top: 0.5 + cross_section: xs_sc + with_loopback: false diff --git a/tests/test_components/test_pdk_settings_add_fiber_array_pads_rf_.yml b/tests/test_components/test_pdk_settings_add_fiber_array_pads_rf_.yml index 9b32fc1d..2dd69e53 100644 --- a/tests/test_components/test_pdk_settings_add_fiber_array_pads_rf_.yml +++ b/tests/test_components/test_pdk_settings_add_fiber_array_pads_rf_.yml @@ -1,22 +1,8 @@ +function: add_fiber_array_pads_rf +info: {} +module: ubcpdk.components name: add_fiber_array_pads_rf settings: - changed: {} - child: null - default: - component: ring_single_heater - orientation: 0 - username: JoaquinMatres - full: - component: ring_single_heater - orientation: 0 - username: JoaquinMatres - function_name: add_fiber_array_pads_rf - info: - grating_coupler: - library: Design kits/ebeam - model: ebeam_gc_te1550 - polarization: te - wavelength: 1.55 - info_version: 2 - module: ubcpdk.components - name: add_fiber_array_pads_rf + component: ring_single_heater + orientation: 0 + username: JoaquinMatres diff --git a/tests/test_components/test_pdk_settings_add_pads_dc_.yml b/tests/test_components/test_pdk_settings_add_pads_dc_.yml index e47a2091..c4464de8 100644 --- a/tests/test_components/test_pdk_settings_add_pads_dc_.yml +++ b/tests/test_components/test_pdk_settings_add_pads_dc_.yml @@ -1,101 +1,53 @@ -name: ring_single_heater_e488dd8d_add_electrical_pads_top_dc_c0e05349 +function: add_electrical_pads_top_dc +info: {} +module: gdsfactory.routing.add_electrical_pads_top_dc +name: ring_single_heater_add_electrical_pads_top_dc_cc2475fe settings: - changed: - component: ring_single_heater - pad_array: - function: pad_array - settings: - pad: - function: pad - settings: - bbox_layers: - - - 13 - - 0 - bbox_offsets: - - -1.8 - decorator: - function: add_pins_siepic - settings: - layer_pin: - - 1 - - 11 - port_type: placement - layer: - - 12 + component: ring_single_heater + get_bundle_function: + function: get_bundle + module: gdsfactory.routing.get_bundle + settings: + bend: + function: wire_corner + cross_section: xs_metal_routing + pad_array: + function: pad_array + module: gdsfactory.components.pad + settings: + pad: + function: pad + module: gdsfactory.components.pad + settings: + bbox_layers: + - - 13 - 0 - size: - - 75 - - 75 - spacing: - - 125 - - 125 - child: null - default: - component: - function: straight - settings: - cross_section: xs_metal_routing - length: 200.0 - get_bundle_function: - function: get_bundle - settings: - bend: - function: wire_corner - cross_section: xs_metal_routing - pad_array: pad_array - port_names: null - select_ports: - function: select_ports - settings: - port_type: electrical - spacing: - - 0.0 - - 100.0 - full: - component: ring_single_heater - get_bundle_function: - function: get_bundle - settings: - bend: - function: wire_corner - cross_section: xs_metal_routing - pad_array: - function: pad_array - settings: - pad: - function: pad - settings: - bbox_layers: - - - 13 - - 0 - bbox_offsets: - - -1.8 - decorator: - function: add_pins_siepic - settings: - layer_pin: - - 1 - - 11 - port_type: placement - layer: - - 12 - - 0 - size: - - 75 - - 75 - spacing: - - 125 - - 125 - port_names: null - select_ports: - function: select_ports - settings: - port_type: electrical - spacing: - - 0.0 - - 100.0 - function_name: add_electrical_pads_top_dc - info: {} - info_version: 2 - module: gdsfactory.routing.add_electrical_pads_top_dc - name: ring_single_heater_e488dd8d_add_electrical_pads_top_dc_c0e05349 + bbox_offsets: + - -1.8 + layer: + - 12 + - 0 + post_process: + function: add_pins_siepic + module: ubcpdk.tech + settings: + layer_pin: + - 1 + - 11 + port_type: placement + size: + - 75 + - 75 + spacing: + - 125 + - 125 + port_names: null + post_process: null + select_ports: + function: select_ports + module: gdsfactory.port + settings: + port_type: electrical + spacing: + - 0.0 + - 100.0 diff --git a/tests/test_components/test_pdk_settings_add_pads_rf_.yml b/tests/test_components/test_pdk_settings_add_pads_rf_.yml index f72eeb2f..a822b984 100644 --- a/tests/test_components/test_pdk_settings_add_pads_rf_.yml +++ b/tests/test_components/test_pdk_settings_add_pads_rf_.yml @@ -1,94 +1,48 @@ -name: ring_single_heater_e488dd8d_add_electrical_pads_top_c0e05349 +function: add_electrical_pads_top +info: {} +module: gdsfactory.routing.add_electrical_pads_top +name: ring_single_heater_add_electrical_pads_top_cc2475fe settings: - changed: - component: ring_single_heater - pad_array: - function: pad_array - settings: - pad: - function: pad - settings: - bbox_layers: - - - 13 - - 0 - bbox_offsets: - - -1.8 - decorator: - function: add_pins_siepic - settings: - layer_pin: - - 1 - - 11 - port_type: placement - layer: - - 12 + component: ring_single_heater + direction: top + layer: MTOP + pad_array: + function: pad_array + module: gdsfactory.components.pad + settings: + pad: + function: pad + module: gdsfactory.components.pad + settings: + bbox_layers: + - - 13 - 0 - size: - - 75 - - 75 - spacing: - - 125 - - 125 - child: null - default: - component: - function: straight - settings: - cross_section: xs_metal_routing - length: 200.0 - direction: top - layer: MTOP - pad_array: - function: pad_array - port_names: null - select_ports: - function: select_ports - settings: - port_type: electrical - spacing: - - 0.0 - - 100.0 - full: - component: ring_single_heater - direction: top - layer: MTOP - pad_array: - function: pad_array - settings: - pad: - function: pad - settings: - bbox_layers: - - - 13 - - 0 - bbox_offsets: - - -1.8 - decorator: - function: add_pins_siepic - settings: - layer_pin: - - 1 - - 11 - port_type: placement - layer: - - 12 - - 0 - size: - - 75 - - 75 - spacing: - - 125 - - 125 - port_names: null - select_ports: - function: select_ports - settings: - port_type: electrical - spacing: - - 0.0 - - 100.0 - function_name: add_electrical_pads_top - info: {} - info_version: 2 - module: gdsfactory.routing.add_electrical_pads_top - name: ring_single_heater_e488dd8d_add_electrical_pads_top_c0e05349 + bbox_offsets: + - -1.8 + layer: + - 12 + - 0 + post_process: + function: add_pins_siepic + module: ubcpdk.tech + settings: + layer_pin: + - 1 + - 11 + port_type: placement + size: + - 75 + - 75 + spacing: + - 125 + - 125 + port_names: null + post_process: null + select_ports: + function: select_ports + module: gdsfactory.port + settings: + port_type: electrical + spacing: + - 0.0 + - 100.0 diff --git a/tests/test_components/test_pdk_settings_bend_.yml b/tests/test_components/test_pdk_settings_bend_.yml index 90d43eb4..418e5e3f 100644 --- a/tests/test_components/test_pdk_settings_bend_.yml +++ b/tests/test_components/test_pdk_settings_bend_.yml @@ -1,22 +1,15 @@ +function: bend_euler_sc +info: + dy: 10.0 + length: 16.637 + radius: 10.0 + radius_min: 7.061 + route_info_length: 16.637 + route_info_n_bend_90: 1.0 + route_info_type: xs_sc_devrec + route_info_weight: 16.637 + route_info_xs_sc_devrec_length: 16.637 + width: 0.5 +module: ubcpdk.components name: bend_euler_sc -settings: - changed: {} - child: null - default: {} - full: {} - function_name: bend_euler_sc - info: - dy: 10.0 - length: 16.637 - radius: 10.0 - radius_min: 7.061 - route_info: - length: 16.637 - n_bend_90: 1.0 - type: xs_sc_devrec - weight: 16.637 - xs_sc_devrec_length: 16.637 - width: 0.5 - info_version: 2 - module: ubcpdk.components - name: bend_euler_sc +settings: {} diff --git a/tests/test_components/test_pdk_settings_bend_euler180_sc_.yml b/tests/test_components/test_pdk_settings_bend_euler180_sc_.yml index 683812eb..21cd04a4 100644 --- a/tests/test_components/test_pdk_settings_bend_euler180_sc_.yml +++ b/tests/test_components/test_pdk_settings_bend_euler180_sc_.yml @@ -1,24 +1,16 @@ +function: bend_euler_sc +info: + dy: 0.0 + length: 42.817 + radius: 10.0 + radius_min: 9.086 + route_info_length: 42.817 + route_info_n_bend_90: 2.0 + route_info_type: xs_sc_devrec + route_info_weight: 42.817 + route_info_xs_sc_devrec_length: 42.817 + width: 0.5 +module: ubcpdk.components name: bend_euler_sc_angle180 settings: - changed: - angle: 180 - child: null - default: {} - full: - angle: 180 - function_name: bend_euler_sc - info: - dy: 0.0 - length: 42.817 - radius: 10.0 - radius_min: 9.086 - route_info: - length: 42.817 - n_bend_90: 2.0 - type: xs_sc_devrec - weight: 42.817 - xs_sc_devrec_length: 42.817 - width: 0.5 - info_version: 2 - module: ubcpdk.components - name: bend_euler_sc_angle180 + angle: 180 diff --git a/tests/test_components/test_pdk_settings_bend_euler_sc_.yml b/tests/test_components/test_pdk_settings_bend_euler_sc_.yml index 90d43eb4..418e5e3f 100644 --- a/tests/test_components/test_pdk_settings_bend_euler_sc_.yml +++ b/tests/test_components/test_pdk_settings_bend_euler_sc_.yml @@ -1,22 +1,15 @@ +function: bend_euler_sc +info: + dy: 10.0 + length: 16.637 + radius: 10.0 + radius_min: 7.061 + route_info_length: 16.637 + route_info_n_bend_90: 1.0 + route_info_type: xs_sc_devrec + route_info_weight: 16.637 + route_info_xs_sc_devrec_length: 16.637 + width: 0.5 +module: ubcpdk.components name: bend_euler_sc -settings: - changed: {} - child: null - default: {} - full: {} - function_name: bend_euler_sc - info: - dy: 10.0 - length: 16.637 - radius: 10.0 - radius_min: 7.061 - route_info: - length: 16.637 - n_bend_90: 1.0 - type: xs_sc_devrec - weight: 16.637 - xs_sc_devrec_length: 16.637 - width: 0.5 - info_version: 2 - module: ubcpdk.components - name: bend_euler_sc +settings: {} diff --git a/tests/test_components/test_pdk_settings_bend_s_.yml b/tests/test_components/test_pdk_settings_bend_s_.yml index 16dccbdc..80d09669 100644 --- a/tests/test_components/test_pdk_settings_bend_s_.yml +++ b/tests/test_components/test_pdk_settings_bend_s_.yml @@ -1,29 +1,17 @@ +function: bend_s +info: + end_angle: 0 + length: 11.206 + min_bend_radius: 13.012 + start_angle: 0 +module: gdsfactory.components.bend_s name: bend_s settings: - changed: {} - child: null - default: - add_pins: true - cross_section: xs_sc - npoints: 99 - size: - - 11.0 - - 1.8 - with_bbox: true - full: - add_pins: true - cross_section: xs_sc - npoints: 99 - size: - - 11.0 - - 1.8 - with_bbox: true - function_name: bend_s - info: - end_angle: 0 - length: 11.206 - min_bend_radius: 13.012 - start_angle: 0 - info_version: 2 - module: gdsfactory.components.bend_s - name: bend_s + add_pins: true + cross_section: xs_sc + npoints: 99 + post_process: null + size: + - 11.0 + - 1.8 + with_bbox: true diff --git a/tests/test_components/test_pdk_settings_coupler_.yml b/tests/test_components/test_pdk_settings_coupler_.yml index 27b1ce79..aa28944e 100644 --- a/tests/test_components/test_pdk_settings_coupler_.yml +++ b/tests/test_components/test_pdk_settings_coupler_.yml @@ -1,98 +1,50 @@ -name: coupler_0482171d +function: coupler +info: + length: 10.186 + min_bend_radius: 11.857 +module: gdsfactory.components.coupler +name: coupler_4abc60df settings: - changed: - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - decorator: - function: add_pins_bbox_siepic - child: null - default: - coupler_straight: - function: coupler_straight - coupler_symmetric: - function: coupler_symmetric - cross_section: xs_sc - dx: 10.0 - dy: 4.0 - gap: 0.236 - length: 20.0 - full: - coupler_straight: - function: coupler_straight - coupler_symmetric: - function: coupler_symmetric - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - decorator: - function: add_pins_bbox_siepic - dx: 10.0 - dy: 4.0 - gap: 0.236 - length: 20.0 - function_name: coupler - info: - length: 10.186 - min_bend_radius: 11.857 - info_version: 2 - module: gdsfactory.components.coupler - name: coupler_0482171d + coupler_straight: + function: coupler_straight + coupler_symmetric: + function: coupler_symmetric + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 + radius: 10.0 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + dx: 10.0 + dy: 4.0 + gap: 0.236 + length: 20.0 + post_process: + function: add_pins_bbox_siepic diff --git a/tests/test_components/test_pdk_settings_coupler_ring_.yml b/tests/test_components/test_pdk_settings_coupler_ring_.yml index ff0c097d..a4110136 100644 --- a/tests/test_components/test_pdk_settings_coupler_ring_.yml +++ b/tests/test_components/test_pdk_settings_coupler_ring_.yml @@ -1,103 +1,51 @@ -name: coupler_ring_84558c9a +function: coupler_ring +info: {} +module: gdsfactory.components.coupler_ring +name: coupler_ring_3a87bf6f settings: - changed: - add_bbox: - function: add_pins_bbox_siepic - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - child: null - default: - add_bbox: null - bend: - function: bend_euler - coupler90: - function: coupler90 - coupler_straight: - function: coupler_straight - cross_section: xs_sc - cross_section_bend: null - gap: 0.2 - length_extension: 3 - length_x: 4.0 - radius: 5.0 - full: - add_bbox: - function: add_pins_bbox_siepic - bend: - function: bend_euler - coupler90: - function: coupler90 - coupler_straight: - function: coupler_straight - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section_bend: null - gap: 0.2 - length_extension: 3 - length_x: 4.0 - radius: 5.0 - function_name: coupler_ring - info: {} - info_version: 2 - module: gdsfactory.components.coupler_ring - name: coupler_ring_84558c9a + add_bbox: + function: add_pins_bbox_siepic + bend: + function: bend_euler + coupler90: + function: coupler90 + coupler_straight: + function: coupler_straight + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 + radius: 10.0 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + cross_section_bend: null + gap: 0.2 + length_extension: 3 + length_x: 4.0 + radius: 5.0 diff --git a/tests/test_components/test_pdk_settings_dbg_.yml b/tests/test_components/test_pdk_settings_dbg_.yml index 8525fe6f..f70c8be5 100644 --- a/tests/test_components/test_pdk_settings_dbg_.yml +++ b/tests/test_components/test_pdk_settings_dbg_.yml @@ -1,21 +1,10 @@ +function: dbg +info: {} +module: ubcpdk.components name: dbg settings: - changed: {} - child: null - default: - dw: 0.1 - l1: 0.079 - l2: 0.079 - n: 100 - w0: 0.5 - full: - dw: 0.1 - l1: 0.079 - l2: 0.079 - n: 100 - w0: 0.5 - function_name: dbg - info: {} - info_version: 2 - module: ubcpdk.components - name: dbg + dw: 0.1 + l1: 0.079 + l2: 0.079 + n: 100 + w0: 0.5 diff --git a/tests/test_components/test_pdk_settings_dbr_cavity_.yml b/tests/test_components/test_pdk_settings_dbr_cavity_.yml index 9056872d..f079899a 100644 --- a/tests/test_components/test_pdk_settings_dbr_cavity_.yml +++ b/tests/test_components/test_pdk_settings_dbr_cavity_.yml @@ -1,89 +1,46 @@ +function: dbr_cavity +info: {} +module: ubcpdk.components name: dbr_cavity settings: - changed: {} - child: null - default: - coupler: - function: coupler - settings: - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - decorator: - function: add_pins_bbox_siepic - dbr: - function: dbr - full: - coupler: - function: coupler - settings: - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - decorator: - function: add_pins_bbox_siepic - dbr: - function: dbr - function_name: dbr_cavity - info: {} - info_version: 2 - module: ubcpdk.components - name: dbr_cavity + coupler: + function: coupler + module: gdsfactory.components.coupler + settings: + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 + radius: 10.0 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + post_process: + function: add_pins_bbox_siepic + dbr: + function: dbr diff --git a/tests/test_components/test_pdk_settings_dbr_cavity_te_.yml b/tests/test_components/test_pdk_settings_dbr_cavity_te_.yml index 01a2fba9..a545954d 100644 --- a/tests/test_components/test_pdk_settings_dbr_cavity_te_.yml +++ b/tests/test_components/test_pdk_settings_dbr_cavity_te_.yml @@ -1,87 +1,79 @@ -name: dbr_cavity_add_fiber_array_2e3389fa_add_fiber_array_37b25c57 +function: add_fiber_array +info: {} +module: ubcpdk.components +name: add_fiber_array_add_fiber_array_componentdbr_cavity settings: - changed: - component: - component: dbr_cavity - settings: {} - child: null - default: - component: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - component_name: null - cross_section: xs_sc - fanout_length: 0.0 - gc_port_name: o1 - get_input_labels_function: - function: get_input_labels - grating_coupler: - function: gc_te1550 - layer_label: - - 10 - - 0 - optical_routing_type: 0 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - with_loopback: false - full: - component: - component: dbr_cavity - settings: {} - component_name: null - cross_section: xs_sc - fanout_length: 0.0 - gc_port_name: o1 - get_input_labels_function: - function: get_input_labels - grating_coupler: - function: gc_te1550 - layer_label: - - 10 - - 0 - optical_routing_type: 0 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - with_loopback: false - function_name: add_fiber_array - info: - grating_coupler: - library: Design kits/ebeam - model: ebeam_gc_te1550 - polarization: te - wavelength: 1.55 - info_version: 2 - module: ubcpdk.components - name: dbr_cavity_add_fiber_array_2e3389fa_add_fiber_array_37b25c57 + component: + function: dbr_cavity + module: ubcpdk.components + settings: + coupler: + function: coupler + module: gdsfactory.components.coupler + settings: + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 + radius: 10.0 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + post_process: + function: add_pins_bbox_siepic + dbr: + function: dbr + component_name: null + cross_section: xs_sc + fanout_length: 0.0 + gc_port_name: o1 + get_input_labels_function: + function: get_input_labels + grating_coupler: + function: gc_te1550 + layer_label: + - 10 + - 0 + optical_routing_type: 0 + post_process: null + straight: + function: straight + module: gdsfactory.components.straight + settings: + add_bbox: + function: add_padding + module: gdsfactory.add_padding + settings: + bottom: 0.5 + default: 0 + layers: + - - 68 + - 0 + top: 0.5 + cross_section: xs_sc + with_loopback: false diff --git a/tests/test_components/test_pdk_settings_ebeam_BondPad_.yml b/tests/test_components/test_pdk_settings_ebeam_BondPad_.yml index a6cf540f..b8693362 100644 --- a/tests/test_components/test_pdk_settings_ebeam_BondPad_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_BondPad_.yml @@ -1,13 +1,7 @@ +function: ebeam_BondPad +info: + library: Design kits/ebeam + model: ebeam_BondPad +module: ubcpdk.components name: ebeam_BondPad -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_BondPad - info: - library: Design kits/ebeam - model: ebeam_BondPad - info_version: 2 - module: ubcpdk.components - name: ebeam_BondPad +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_adiabatic_te1550_.yml b/tests/test_components/test_pdk_settings_ebeam_adiabatic_te1550_.yml index 4f6c280b..371d3637 100644 --- a/tests/test_components/test_pdk_settings_ebeam_adiabatic_te1550_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_adiabatic_te1550_.yml @@ -1,13 +1,7 @@ +function: ebeam_adiabatic_te1550 +info: + library: Design kits/ebeam + model: ebeam_adiabatic_te1550 +module: ubcpdk.components name: ebeam_adiabatic_te1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_adiabatic_te1550 - info: - library: Design kits/ebeam - model: ebeam_adiabatic_te1550 - info_version: 2 - module: ubcpdk.components - name: ebeam_adiabatic_te1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_adiabatic_tm1550_.yml b/tests/test_components/test_pdk_settings_ebeam_adiabatic_tm1550_.yml index 215384f5..5e9a6699 100644 --- a/tests/test_components/test_pdk_settings_ebeam_adiabatic_tm1550_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_adiabatic_tm1550_.yml @@ -1,13 +1,7 @@ +function: ebeam_adiabatic_tm1550 +info: + library: Design kits/ebeam + model: ebeam_adiabatic_tm1550 +module: ubcpdk.components name: ebeam_adiabatic_tm1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_adiabatic_tm1550 - info: - library: Design kits/ebeam - model: ebeam_adiabatic_tm1550 - info_version: 2 - module: ubcpdk.components - name: ebeam_adiabatic_tm1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_bdc_te1550_.yml b/tests/test_components/test_pdk_settings_ebeam_bdc_te1550_.yml index d7b19a21..c79c070a 100644 --- a/tests/test_components/test_pdk_settings_ebeam_bdc_te1550_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_bdc_te1550_.yml @@ -1,13 +1,7 @@ +function: ebeam_bdc_te1550 +info: + library: Design kits/ebeam + model: ebeam_bdc_te1550 +module: ubcpdk.components name: ebeam_bdc_te1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_bdc_te1550 - info: - library: Design kits/ebeam - model: ebeam_bdc_te1550 - info_version: 2 - module: ubcpdk.components - name: ebeam_bdc_te1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_bdc_tm1550_.yml b/tests/test_components/test_pdk_settings_ebeam_bdc_tm1550_.yml index 0b848934..865cc924 100644 --- a/tests/test_components/test_pdk_settings_ebeam_bdc_tm1550_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_bdc_tm1550_.yml @@ -1,13 +1,7 @@ +function: ebeam_bdc_tm1550 +info: + library: Design kits/ebeam + model: ebeam_bdc_tm1550 +module: ubcpdk.components name: ebeam_bdc_tm1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_bdc_tm1550 - info: - library: Design kits/ebeam - model: ebeam_bdc_tm1550 - info_version: 2 - module: ubcpdk.components - name: ebeam_bdc_tm1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_crossing4_.yml b/tests/test_components/test_pdk_settings_ebeam_crossing4_.yml index 3d4e8b6f..97358539 100644 --- a/tests/test_components/test_pdk_settings_ebeam_crossing4_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_crossing4_.yml @@ -1,13 +1,7 @@ +function: ebeam_crossing4 +info: + library: Design kits/ebeam + model: ebeam_crossing4 +module: ubcpdk.components name: ebeam_crossing4 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_crossing4 - info: - library: Design kits/ebeam - model: ebeam_crossing4 - info_version: 2 - module: ubcpdk.components - name: ebeam_crossing4 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_crossing4_2ports_.yml b/tests/test_components/test_pdk_settings_ebeam_crossing4_2ports_.yml index bbe9c5c2..1b6bbcc3 100644 --- a/tests/test_components/test_pdk_settings_ebeam_crossing4_2ports_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_crossing4_2ports_.yml @@ -1,11 +1,5 @@ +function: ebeam_crossing4_2ports +info: {} +module: ubcpdk.components name: ebeam_crossing4_2ports -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_crossing4_2ports - info: {} - info_version: 2 - module: ubcpdk.components - name: ebeam_crossing4_2ports +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_dc_halfring_straight_.yml b/tests/test_components/test_pdk_settings_ebeam_dc_halfring_straight_.yml index 16935e89..800fed62 100644 --- a/tests/test_components/test_pdk_settings_ebeam_dc_halfring_straight_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_dc_halfring_straight_.yml @@ -1,39 +1,16 @@ +function: ebeam_dc_halfring_straight +info: + Lc: 4.0 + gap: 0.2 + model: ebeam_dc_halfring_straight + radius: 5.0 + wg_thickness: 0.22 + wg_width: 0.5 +module: ubcpdk.components name: ebeam_dc_halfring_straight settings: - changed: {} - child: null - default: - gap: 0.2 - length_x: 4.0 - model: ebeam_dc_halfring_straight - radius: 5.0 - siepic: true - full: - gap: 0.2 - length_x: 4.0 - model: ebeam_dc_halfring_straight - radius: 5.0 - siepic: true - function_name: ebeam_dc_halfring_straight - info: - component_type: - - optical - layout_model_port_pairs: - - - o1 - - port 1 - - - o2 - - port 2 - - - o3 - - port 4 - - - o4 - - port 3 - model: ebeam_dc_halfring_straight - properties: - Lc: 0.0 - gap: 0.0 - radius: 0.0 - wg_thickness: 0.0 - wg_width: 0.0 - info_version: 2 - module: ubcpdk.components - name: ebeam_dc_halfring_straight + gap: 0.2 + length_x: 4.0 + model: ebeam_dc_halfring_straight + radius: 5.0 + siepic: true diff --git a/tests/test_components/test_pdk_settings_ebeam_dc_te1550_.yml b/tests/test_components/test_pdk_settings_ebeam_dc_te1550_.yml index 0cb2051d..563656f0 100644 --- a/tests/test_components/test_pdk_settings_ebeam_dc_te1550_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_dc_te1550_.yml @@ -1,39 +1,21 @@ -name: coupler_d51b16db +function: coupler +info: + length: 10.186 + min_bend_radius: 11.857 +module: gdsfactory.components.coupler +name: coupler_17b65cbd settings: - changed: - decorator: - function: add_pins_bbox_siepic - settings: - remove_layers: true - child: null - default: - coupler_straight: - function: coupler_straight - coupler_symmetric: - function: coupler_symmetric - cross_section: xs_sc - dx: 10.0 - dy: 4.0 - gap: 0.236 - length: 20.0 - full: - coupler_straight: - function: coupler_straight - coupler_symmetric: - function: coupler_symmetric - cross_section: xs_sc - decorator: - function: add_pins_bbox_siepic - settings: - remove_layers: true - dx: 10.0 - dy: 4.0 - gap: 0.236 - length: 20.0 - function_name: coupler - info: - length: 10.186 - min_bend_radius: 11.857 - info_version: 2 - module: gdsfactory.components.coupler - name: coupler_d51b16db + coupler_straight: + function: coupler_straight + coupler_symmetric: + function: coupler_symmetric + cross_section: xs_sc + dx: 10.0 + dy: 4.0 + gap: 0.236 + length: 20.0 + post_process: + function: add_pins_bbox_siepic + module: ubcpdk.tech + settings: + remove_layers: true diff --git a/tests/test_components/test_pdk_settings_ebeam_splitter_adiabatic_swg_te1550_.yml b/tests/test_components/test_pdk_settings_ebeam_splitter_adiabatic_swg_te1550_.yml index 04cd5eb1..6a639d7b 100644 --- a/tests/test_components/test_pdk_settings_ebeam_splitter_adiabatic_swg_te1550_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_splitter_adiabatic_swg_te1550_.yml @@ -1,13 +1,7 @@ +function: ebeam_splitter_adiabatic_swg_te1550 +info: + library: Design kits/ebeam + model: ebeam_splitter_adiabatic_swg_te1550 +module: ubcpdk.components name: ebeam_splitter_adiabatic_swg_te1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_splitter_adiabatic_swg_te1550 - info: - library: Design kits/ebeam - model: ebeam_splitter_adiabatic_swg_te1550 - info_version: 2 - module: ubcpdk.components - name: ebeam_splitter_adiabatic_swg_te1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_splitter_swg_assist_te1310_.yml b/tests/test_components/test_pdk_settings_ebeam_splitter_swg_assist_te1310_.yml index fb197526..e9143dcb 100644 --- a/tests/test_components/test_pdk_settings_ebeam_splitter_swg_assist_te1310_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_splitter_swg_assist_te1310_.yml @@ -1,13 +1,7 @@ +function: ebeam_splitter_swg_assist_te1310 +info: + library: Design kits/ebeam + model: ebeam_splitter_swg_assist_te1310 +module: ubcpdk.components name: ebeam_splitter_swg_assist_te1310 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_splitter_swg_assist_te1310 - info: - library: Design kits/ebeam - model: ebeam_splitter_swg_assist_te1310 - info_version: 2 - module: ubcpdk.components - name: ebeam_splitter_swg_assist_te1310 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_splitter_swg_assist_te1550_.yml b/tests/test_components/test_pdk_settings_ebeam_splitter_swg_assist_te1550_.yml index 6bfa80f7..fff4e7f9 100644 --- a/tests/test_components/test_pdk_settings_ebeam_splitter_swg_assist_te1550_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_splitter_swg_assist_te1550_.yml @@ -1,13 +1,7 @@ +function: ebeam_splitter_swg_assist_te1550 +info: + library: Design kits/ebeam + model: ebeam_splitter_swg_assist_te1550 +module: ubcpdk.components name: ebeam_splitter_swg_assist_te1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_splitter_swg_assist_te1550 - info: - library: Design kits/ebeam - model: ebeam_splitter_swg_assist_te1550 - info_version: 2 - module: ubcpdk.components - name: ebeam_splitter_swg_assist_te1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_swg_edgecoupler_.yml b/tests/test_components/test_pdk_settings_ebeam_swg_edgecoupler_.yml index 9c3d7de1..f13e31bd 100644 --- a/tests/test_components/test_pdk_settings_ebeam_swg_edgecoupler_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_swg_edgecoupler_.yml @@ -1,13 +1,7 @@ +function: ebeam_swg_edgecoupler +info: + library: Design kits/ebeam + model: ebeam_swg_edgecoupler +module: ubcpdk.components name: ebeam_swg_edgecoupler -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_swg_edgecoupler - info: - library: Design kits/ebeam - model: ebeam_swg_edgecoupler - info_version: 2 - module: ubcpdk.components - name: ebeam_swg_edgecoupler +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_terminator_te1310_.yml b/tests/test_components/test_pdk_settings_ebeam_terminator_te1310_.yml index 081c9017..50dad0d2 100644 --- a/tests/test_components/test_pdk_settings_ebeam_terminator_te1310_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_terminator_te1310_.yml @@ -1,13 +1,7 @@ +function: ebeam_terminator_te1310 +info: + library: Design kits/ebeam + model: ebeam_terminator_te1310 +module: ubcpdk.components name: ebeam_terminator_te1310 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_terminator_te1310 - info: - library: Design kits/ebeam - model: ebeam_terminator_te1310 - info_version: 2 - module: ubcpdk.components - name: ebeam_terminator_te1310 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_terminator_te1550_.yml b/tests/test_components/test_pdk_settings_ebeam_terminator_te1550_.yml index f279b0a5..e1903160 100644 --- a/tests/test_components/test_pdk_settings_ebeam_terminator_te1550_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_terminator_te1550_.yml @@ -1,13 +1,7 @@ +function: ebeam_terminator_te1550 +info: + library: Design kits/ebeam + model: ebeam_terminator_te1550 +module: ubcpdk.components name: ebeam_terminator_te1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_terminator_te1550 - info: - library: Design kits/ebeam - model: ebeam_terminator_te1550 - info_version: 2 - module: ubcpdk.components - name: ebeam_terminator_te1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_terminator_tm1550_.yml b/tests/test_components/test_pdk_settings_ebeam_terminator_tm1550_.yml index de0478fd..06342349 100644 --- a/tests/test_components/test_pdk_settings_ebeam_terminator_tm1550_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_terminator_tm1550_.yml @@ -1,13 +1,7 @@ +function: ebeam_terminator_tm1550 +info: + library: Design kits/ebeam + model: ebeam_terminator_tm1550 +module: ubcpdk.components name: ebeam_terminator_tm1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_terminator_tm1550 - info: - library: Design kits/ebeam - model: ebeam_terminator_tm1550 - info_version: 2 - module: ubcpdk.components - name: ebeam_terminator_tm1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_y_1550_.yml b/tests/test_components/test_pdk_settings_ebeam_y_1550_.yml index 2aec46be..2d258cb6 100644 --- a/tests/test_components/test_pdk_settings_ebeam_y_1550_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_y_1550_.yml @@ -1,13 +1,7 @@ +function: ebeam_y_1550 +info: + library: Design kits/ebeam + model: ebeam_y_1550 +module: ubcpdk.components name: ebeam_y_1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_y_1550 - info: - library: Design kits/ebeam - model: ebeam_y_1550 - info_version: 2 - module: ubcpdk.components - name: ebeam_y_1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_.yml b/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_.yml index 21e9ef3b..65b70541 100644 --- a/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_.yml @@ -1,13 +1,7 @@ +function: ebeam_y_adiabatic +info: + library: Design kits/ebeam + model: ebeam_y_adiabatic +module: ubcpdk.components name: ebeam_y_adiabatic -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_y_adiabatic - info: - library: Design kits/ebeam - model: ebeam_y_adiabatic - info_version: 2 - module: ubcpdk.components - name: ebeam_y_adiabatic +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_1310_.yml b/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_1310_.yml index d2acc807..531ef7fd 100644 --- a/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_1310_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_1310_.yml @@ -1,13 +1,7 @@ +function: ebeam_y_adiabatic_1310 +info: + library: Design kits/ebeam + model: ebeam_y_adiabatic_1310 +module: ubcpdk.components name: ebeam_y_adiabatic_1310 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_y_adiabatic_1310 - info: - library: Design kits/ebeam - model: ebeam_y_adiabatic_1310 - info_version: 2 - module: ubcpdk.components - name: ebeam_y_adiabatic_1310 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_tapers_.yml b/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_tapers_.yml index c4446aab..f9ecbaa3 100644 --- a/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_tapers_.yml +++ b/tests/test_components/test_pdk_settings_ebeam_y_adiabatic_tapers_.yml @@ -1,13 +1,7 @@ +function: ebeam_y_adiabatic_tapers +info: + library: Design kits/ebeam + model: ebeam_y_adiabatic +module: ubcpdk.components name: ebeam_y_adiabatic_tapers -settings: - changed: {} - child: null - default: {} - full: {} - function_name: ebeam_y_adiabatic_tapers - info: - library: Design kits/ebeam - model: ebeam_y_adiabatic - info_version: 2 - module: ubcpdk.components - name: ebeam_y_adiabatic_tapers +settings: {} diff --git a/tests/test_components/test_pdk_settings_gc_te1310_.yml b/tests/test_components/test_pdk_settings_gc_te1310_.yml index bae2e35b..fc372afb 100644 --- a/tests/test_components/test_pdk_settings_gc_te1310_.yml +++ b/tests/test_components/test_pdk_settings_gc_te1310_.yml @@ -1,15 +1,9 @@ +function: gc_te1310 +info: + library: Design kits/ebeam + model: ebeam_gc_te1310 + polarization: te + wavelength: 1.31 +module: ubcpdk.components name: gc_te1310 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: gc_te1310 - info: - library: Design kits/ebeam - model: ebeam_gc_te1310 - polarization: te - wavelength: 1.31 - info_version: 2 - module: ubcpdk.components - name: gc_te1310 +settings: {} diff --git a/tests/test_components/test_pdk_settings_gc_te1310_8deg_.yml b/tests/test_components/test_pdk_settings_gc_te1310_8deg_.yml index f4f60437..5850c83d 100644 --- a/tests/test_components/test_pdk_settings_gc_te1310_8deg_.yml +++ b/tests/test_components/test_pdk_settings_gc_te1310_8deg_.yml @@ -1,15 +1,9 @@ +function: gc_te1310_8deg +info: + library: Design kits/ebeam + model: ebeam_gc_te1310_8deg + polarization: te + wavelength: 1.31 +module: ubcpdk.components name: gc_te1310_8deg -settings: - changed: {} - child: null - default: {} - full: {} - function_name: gc_te1310_8deg - info: - library: Design kits/ebeam - model: ebeam_gc_te1310_8deg - polarization: te - wavelength: 1.31 - info_version: 2 - module: ubcpdk.components - name: gc_te1310_8deg +settings: {} diff --git a/tests/test_components/test_pdk_settings_gc_te1310_broadband_.yml b/tests/test_components/test_pdk_settings_gc_te1310_broadband_.yml index 9208fbe1..85a611fe 100644 --- a/tests/test_components/test_pdk_settings_gc_te1310_broadband_.yml +++ b/tests/test_components/test_pdk_settings_gc_te1310_broadband_.yml @@ -1,15 +1,9 @@ +function: gc_te1310_broadband +info: + library: Design kits/ebeam + model: ebeam_gc_te1310_broadband + polarization: te + wavelength: 1.31 +module: ubcpdk.components name: gc_te1310_broadband -settings: - changed: {} - child: null - default: {} - full: {} - function_name: gc_te1310_broadband - info: - library: Design kits/ebeam - model: ebeam_gc_te1310_broadband - polarization: te - wavelength: 1.31 - info_version: 2 - module: ubcpdk.components - name: gc_te1310_broadband +settings: {} diff --git a/tests/test_components/test_pdk_settings_gc_te1550_.yml b/tests/test_components/test_pdk_settings_gc_te1550_.yml index 0a0d8346..5b3b4aaf 100644 --- a/tests/test_components/test_pdk_settings_gc_te1550_.yml +++ b/tests/test_components/test_pdk_settings_gc_te1550_.yml @@ -1,15 +1,9 @@ +function: gc_te1550 +info: + library: Design kits/ebeam + model: ebeam_gc_te1550 + polarization: te + wavelength: 1.55 +module: ubcpdk.components name: gc_te1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: gc_te1550 - info: - library: Design kits/ebeam - model: ebeam_gc_te1550 - polarization: te - wavelength: 1.55 - info_version: 2 - module: ubcpdk.components - name: gc_te1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_gc_te1550_90nmSlab_.yml b/tests/test_components/test_pdk_settings_gc_te1550_90nmSlab_.yml index d66fb01b..76560c58 100644 --- a/tests/test_components/test_pdk_settings_gc_te1550_90nmSlab_.yml +++ b/tests/test_components/test_pdk_settings_gc_te1550_90nmSlab_.yml @@ -1,15 +1,9 @@ +function: gc_te1550_90nmSlab +info: + library: Design kits/ebeam + model: ebeam_gc_te1550_90nmSlab + polarization: te + wavelength: 1.55 +module: ubcpdk.components name: gc_te1550_90nmSlab -settings: - changed: {} - child: null - default: {} - full: {} - function_name: gc_te1550_90nmSlab - info: - library: Design kits/ebeam - model: ebeam_gc_te1550_90nmSlab - polarization: te - wavelength: 1.55 - info_version: 2 - module: ubcpdk.components - name: gc_te1550_90nmSlab +settings: {} diff --git a/tests/test_components/test_pdk_settings_gc_te1550_broadband_.yml b/tests/test_components/test_pdk_settings_gc_te1550_broadband_.yml index 7409c711..7a799690 100644 --- a/tests/test_components/test_pdk_settings_gc_te1550_broadband_.yml +++ b/tests/test_components/test_pdk_settings_gc_te1550_broadband_.yml @@ -1,15 +1,9 @@ +function: gc_te1550_broadband +info: + library: Design kits/ebeam + model: ebeam_gc_te1550_broadband + polarization: te + wavelength: 1.55 +module: ubcpdk.components name: gc_te1550_broadband -settings: - changed: {} - child: null - default: {} - full: {} - function_name: gc_te1550_broadband - info: - library: Design kits/ebeam - model: ebeam_gc_te1550_broadband - polarization: te - wavelength: 1.55 - info_version: 2 - module: ubcpdk.components - name: gc_te1550_broadband +settings: {} diff --git a/tests/test_components/test_pdk_settings_gc_tm1550_.yml b/tests/test_components/test_pdk_settings_gc_tm1550_.yml index 565e34ac..8fb525c1 100644 --- a/tests/test_components/test_pdk_settings_gc_tm1550_.yml +++ b/tests/test_components/test_pdk_settings_gc_tm1550_.yml @@ -1,15 +1,9 @@ +function: gc_tm1550 +info: + library: Design kits/ebeam + model: ebeam_gc_tm1550 + polarization: tm + wavelength: 1.55 +module: ubcpdk.components name: gc_tm1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: gc_tm1550 - info: - library: Design kits/ebeam - model: ebeam_gc_tm1550 - polarization: tm - wavelength: 1.55 - info_version: 2 - module: ubcpdk.components - name: gc_tm1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_metal_via_.yml b/tests/test_components/test_pdk_settings_metal_via_.yml index 7b50d5d5..b37ea2a3 100644 --- a/tests/test_components/test_pdk_settings_metal_via_.yml +++ b/tests/test_components/test_pdk_settings_metal_via_.yml @@ -1,13 +1,7 @@ +function: metal_via +info: + library: Design kits/ebeam + model: metal_via +module: ubcpdk.components name: metal_via -settings: - changed: {} - child: null - default: {} - full: {} - function_name: metal_via - info: - library: Design kits/ebeam - model: metal_via - info_version: 2 - module: ubcpdk.components - name: metal_via +settings: {} diff --git a/tests/test_components/test_pdk_settings_mmi1x2_.yml b/tests/test_components/test_pdk_settings_mmi1x2_.yml index 15469961..ec92985e 100644 --- a/tests/test_components/test_pdk_settings_mmi1x2_.yml +++ b/tests/test_components/test_pdk_settings_mmi1x2_.yml @@ -1,102 +1,51 @@ -name: mmi1x2_0482171d +function: mmi1x2 +info: {} +module: gdsfactory.components.mmi1x2 +name: mmi1x2_4abc60df settings: - changed: - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - decorator: - function: add_pins_bbox_siepic - child: null - default: - cross_section: xs_sc - gap_mmi: 0.25 - length_mmi: 5.5 - length_taper: 10.0 - straight: - function: straight - taper: - function: taper - width: null - width_mmi: 2.5 - width_taper: 1.0 - with_bbox: true - full: - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - decorator: - function: add_pins_bbox_siepic - gap_mmi: 0.25 - length_mmi: 5.5 - length_taper: 10.0 - straight: - function: straight - taper: - function: taper - width: null - width_mmi: 2.5 - width_taper: 1.0 - with_bbox: true - function_name: mmi1x2 - info: {} - info_version: 2 - module: gdsfactory.components.mmi1x2 - name: mmi1x2_0482171d + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 + radius: 10.0 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + gap_mmi: 0.25 + length_mmi: 5.5 + length_taper: 10.0 + post_process: + function: add_pins_bbox_siepic + straight: + function: straight + taper: + function: taper + width: null + width_mmi: 2.5 + width_taper: 1.0 + with_bbox: true diff --git a/tests/test_components/test_pdk_settings_mzi_.yml b/tests/test_components/test_pdk_settings_mzi_.yml index 5abe3b2c..4d40d59e 100644 --- a/tests/test_components/test_pdk_settings_mzi_.yml +++ b/tests/test_components/test_pdk_settings_mzi_.yml @@ -1,88 +1,45 @@ -name: mzi_54fdfbdf +function: mzi +info: {} +module: gdsfactory.components.mzi +name: mzi_227e0d17 settings: - changed: - bend: - function: bend_euler_sc - splitter: - function: ebeam_y_1550 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - child: null - default: - add_electrical_ports_bot: true - add_optical_ports_arms: false - bend: - function: bend_euler - combiner: null - cross_section: xs_sc - cross_section_x_bot: null - cross_section_x_top: null - delta_length: 10.0 - length_x: 0.1 - length_y: 2.0 - mirror_bot: false - nbends: 2 - port_e0_combiner: o3 - port_e0_splitter: o3 - port_e1_combiner: o2 - port_e1_splitter: o2 - splitter: mmi1x2 - straight: - function: straight - straight_x_bot: null - straight_x_top: null - straight_y: null - with_splitter: true - full: - add_electrical_ports_bot: true - add_optical_ports_arms: false - bend: - function: bend_euler_sc - combiner: null - cross_section: xs_sc - cross_section_x_bot: null - cross_section_x_top: null - delta_length: 10.0 - length_x: 0.1 - length_y: 2.0 - mirror_bot: false - nbends: 2 - port_e0_combiner: o3 - port_e0_splitter: o3 - port_e1_combiner: o2 - port_e1_splitter: o2 - splitter: - function: ebeam_y_1550 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - straight_x_bot: null - straight_x_top: null - straight_y: null - with_splitter: true - function_name: mzi - info: {} - info_version: 2 - module: gdsfactory.components.mzi - name: mzi_54fdfbdf + add_electrical_ports_bot: true + add_optical_ports_arms: false + bend: + function: bend_euler_sc + combiner: null + cross_section: xs_sc + cross_section_x_bot: null + cross_section_x_top: null + delta_length: 10.0 + extend_ports_straight_x: null + length_x: 0.1 + length_y: 2.0 + mirror_bot: false + nbends: 2 + port_e0_combiner: o3 + port_e0_splitter: o3 + port_e1_combiner: o2 + port_e1_splitter: o2 + post_process: null + splitter: + function: ebeam_y_1550 + straight: + function: straight + module: gdsfactory.components.straight + settings: + add_bbox: + function: add_padding + module: gdsfactory.add_padding + settings: + bottom: 0.5 + default: 0 + layers: + - - 68 + - 0 + top: 0.5 + cross_section: xs_sc + straight_x_bot: null + straight_x_top: null + straight_y: null + with_splitter: true diff --git a/tests/test_components/test_pdk_settings_mzi_heater_.yml b/tests/test_components/test_pdk_settings_mzi_heater_.yml index c0f652de..58c41f73 100644 --- a/tests/test_components/test_pdk_settings_mzi_heater_.yml +++ b/tests/test_components/test_pdk_settings_mzi_heater_.yml @@ -1,90 +1,45 @@ -name: mzi_ba583df0 +function: mzi +info: {} +module: gdsfactory.components.mzi +name: mzi_969a97bd settings: - changed: - bend: - function: bend_euler_sc - length_x: 200 - splitter: - function: ebeam_y_1550 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - straight_x_top: straight_heater_metal - child: null - default: - add_electrical_ports_bot: true - add_optical_ports_arms: false - bend: - function: bend_euler - combiner: null - cross_section: xs_sc - cross_section_x_bot: null - cross_section_x_top: null - delta_length: 10.0 - length_x: 0.1 - length_y: 2.0 - mirror_bot: false - nbends: 2 - port_e0_combiner: o3 - port_e0_splitter: o3 - port_e1_combiner: o2 - port_e1_splitter: o2 - splitter: mmi1x2 - straight: - function: straight - straight_x_bot: null - straight_x_top: null - straight_y: null - with_splitter: true - full: - add_electrical_ports_bot: true - add_optical_ports_arms: false - bend: - function: bend_euler_sc - combiner: null - cross_section: xs_sc - cross_section_x_bot: null - cross_section_x_top: null - delta_length: 10.0 - length_x: 200 - length_y: 2.0 - mirror_bot: false - nbends: 2 - port_e0_combiner: o3 - port_e0_splitter: o3 - port_e1_combiner: o2 - port_e1_splitter: o2 - splitter: - function: ebeam_y_1550 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - straight_x_bot: null - straight_x_top: straight_heater_metal - straight_y: null - with_splitter: true - function_name: mzi - info: {} - info_version: 2 - module: gdsfactory.components.mzi - name: mzi_ba583df0 + add_electrical_ports_bot: true + add_optical_ports_arms: false + bend: + function: bend_euler_sc + combiner: null + cross_section: xs_sc + cross_section_x_bot: null + cross_section_x_top: null + delta_length: 10.0 + extend_ports_straight_x: null + length_x: 200 + length_y: 2.0 + mirror_bot: false + nbends: 2 + port_e0_combiner: o3 + port_e0_splitter: o3 + port_e1_combiner: o2 + port_e1_splitter: o2 + post_process: null + splitter: + function: ebeam_y_1550 + straight: + function: straight + module: gdsfactory.components.straight + settings: + add_bbox: + function: add_padding + module: gdsfactory.add_padding + settings: + bottom: 0.5 + default: 0 + layers: + - - 68 + - 0 + top: 0.5 + cross_section: xs_sc + straight_x_bot: null + straight_x_top: straight_heater_metal + straight_y: null + with_splitter: true diff --git a/tests/test_components/test_pdk_settings_pad_.yml b/tests/test_components/test_pdk_settings_pad_.yml index 40a61ac8..9bed9e4b 100644 --- a/tests/test_components/test_pdk_settings_pad_.yml +++ b/tests/test_components/test_pdk_settings_pad_.yml @@ -1,63 +1,34 @@ -name: pad_4a34b26e +function: pad +info: + layer: + - 12 + - 0 + size: + - 75 + - 75 + xsize: 75 + ysize: 75 +module: gdsfactory.components.pad +name: pad_a56a8c7f settings: - changed: - bbox_layers: - - - 13 - - 0 - bbox_offsets: - - -1.8 - decorator: - function: add_pins_siepic - settings: - layer_pin: - - 1 - - 11 - port_type: placement - layer: - - 12 + bbox_layers: + - - 13 - 0 - size: - - 75 - - 75 - child: null - default: - bbox_layers: null - bbox_offsets: null - layer: MTOP - port_inclusion: 0 - port_orientation: null - size: - - 100.0 - - 100.0 - full: - bbox_layers: - - - 13 - - 0 - bbox_offsets: - - -1.8 - decorator: - function: add_pins_siepic - settings: - layer_pin: - - 1 - - 11 - port_type: placement - layer: - - 12 - - 0 - port_inclusion: 0 - port_orientation: null - size: - - 75 - - 75 - function_name: pad - info: - layer: - - 12 - - 0 - size: - - 75.0 - - 75.0 - info_version: 2 - module: gdsfactory.components.pad - name: pad_4a34b26e + bbox_offsets: + - -1.8 + layer: + - 12 + - 0 + port_inclusion: 0 + port_orientation: null + post_process: + function: add_pins_siepic + module: ubcpdk.tech + settings: + layer_pin: + - 1 + - 11 + port_type: placement + size: + - 75 + - 75 diff --git a/tests/test_components/test_pdk_settings_pad_array_.yml b/tests/test_components/test_pdk_settings_pad_array_.yml index d3da77f1..3dd2aa40 100644 --- a/tests/test_components/test_pdk_settings_pad_array_.yml +++ b/tests/test_components/test_pdk_settings_pad_array_.yml @@ -1,72 +1,37 @@ -name: pad_array_71569d1c +function: pad_array +info: + xsize: 75 + ysize: 75 +module: gdsfactory.components.pad +name: pad_array_2e24007e settings: - changed: - pad: - function: pad - settings: - bbox_layers: - - - 13 - - 0 - bbox_offsets: - - -1.8 - decorator: - function: add_pins_siepic - settings: - layer_pin: - - 1 - - 11 - port_type: placement - layer: - - 12 + columns: 6 + orientation: 270 + pad: + function: pad + module: gdsfactory.components.pad + settings: + bbox_layers: + - - 13 - 0 - size: - - 75 - - 75 - spacing: - - 125 - - 125 - child: null - default: - columns: 6 - orientation: 270 - pad: pad - rows: 1 - spacing: - - 150.0 - - 150.0 - full: - columns: 6 - orientation: 270 - pad: - function: pad - settings: - bbox_layers: - - - 13 - - 0 - bbox_offsets: - - -1.8 - decorator: - function: add_pins_siepic - settings: - layer_pin: - - 1 - - 11 - port_type: placement - layer: - - 12 - - 0 - size: - - 75 - - 75 - rows: 1 - spacing: - - 125 - - 125 - function_name: pad_array - info: - size: - - 75 - - 75 - info_version: 2 - module: gdsfactory.components.pad - name: pad_array_71569d1c + bbox_offsets: + - -1.8 + layer: + - 12 + - 0 + post_process: + function: add_pins_siepic + module: ubcpdk.tech + settings: + layer_pin: + - 1 + - 11 + port_type: placement + size: + - 75 + - 75 + post_process: null + rows: 1 + spacing: + - 125 + - 125 diff --git a/tests/test_components/test_pdk_settings_photonic_wirebond_surfacetaper_1310_.yml b/tests/test_components/test_pdk_settings_photonic_wirebond_surfacetaper_1310_.yml index 2cd7cc40..5f1b9863 100644 --- a/tests/test_components/test_pdk_settings_photonic_wirebond_surfacetaper_1310_.yml +++ b/tests/test_components/test_pdk_settings_photonic_wirebond_surfacetaper_1310_.yml @@ -1,13 +1,7 @@ +function: photonic_wirebond_surfacetaper_1310 +info: + library: Design kits/ebeam + model: photonic_wirebond_surfacetaper_1310 +module: ubcpdk.components name: photonic_wirebond_surfacetaper_1310 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: photonic_wirebond_surfacetaper_1310 - info: - library: Design kits/ebeam - model: photonic_wirebond_surfacetaper_1310 - info_version: 2 - module: ubcpdk.components - name: photonic_wirebond_surfacetaper_1310 +settings: {} diff --git a/tests/test_components/test_pdk_settings_photonic_wirebond_surfacetaper_1550_.yml b/tests/test_components/test_pdk_settings_photonic_wirebond_surfacetaper_1550_.yml index 12374493..15418ca9 100644 --- a/tests/test_components/test_pdk_settings_photonic_wirebond_surfacetaper_1550_.yml +++ b/tests/test_components/test_pdk_settings_photonic_wirebond_surfacetaper_1550_.yml @@ -1,13 +1,7 @@ +function: photonic_wirebond_surfacetaper_1550 +info: + library: Design kits/ebeam + model: photonic_wirebond_surfacetaper_1550 +module: ubcpdk.components name: photonic_wirebond_surfacetaper_1550 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: photonic_wirebond_surfacetaper_1550 - info: - library: Design kits/ebeam - model: photonic_wirebond_surfacetaper_1550 - info_version: 2 - module: ubcpdk.components - name: photonic_wirebond_surfacetaper_1550 +settings: {} diff --git a/tests/test_components/test_pdk_settings_ring_double_.yml b/tests/test_components/test_pdk_settings_ring_double_.yml index 27398c31..c6f47dba 100644 --- a/tests/test_components/test_pdk_settings_ring_double_.yml +++ b/tests/test_components/test_pdk_settings_ring_double_.yml @@ -1,194 +1,99 @@ -name: ring_double_f3bc5804 +function: ring_double +info: {} +module: gdsfactory.components.ring_double +name: ring_double_22be2ac6 settings: - changed: - coupler_ring: - function: coupler_ring - settings: - add_bbox: - function: add_pins_bbox_siepic - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section: - add_pins_function_module: ubcpdk.tech - add_pins_function_name: add_pins_siepic - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - child: null - default: - bend: - function: bend_euler - coupler_ring: - function: coupler_ring - cross_section: xs_sc - gap: 0.2 - gap_top: null - length_x: 0.01 - length_y: 0.01 + bend: + function: bend_euler + coupler_ring: + function: coupler_ring + module: gdsfactory.components.coupler_ring + settings: + add_bbox: + function: add_pins_bbox_siepic + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 + radius: 10.0 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 radius: 10.0 - straight: - function: straight - full: - bend: - function: bend_euler - coupler_ring: - function: coupler_ring - settings: - add_bbox: - function: add_pins_bbox_siepic - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section: - add_pins_function_module: ubcpdk.tech - add_pins_function_name: add_pins_siepic - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - gap: 0.2 - gap_top: null - length_x: 0.01 - length_y: 0.01 - radius: 10.0 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - function_name: ring_double - info: {} - info_version: 2 - module: gdsfactory.components.ring_double - name: ring_double_f3bc5804 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + gap: 0.2 + gap_top: null + length_x: 0.01 + length_y: 0.01 + radius: 10.0 + straight: + function: straight + module: gdsfactory.components.straight + settings: + add_bbox: + function: add_padding + module: gdsfactory.add_padding + settings: + bottom: 0.5 + default: 0 + layers: + - - 68 + - 0 + top: 0.5 + cross_section: xs_sc diff --git a/tests/test_components/test_pdk_settings_ring_double_heater_.yml b/tests/test_components/test_pdk_settings_ring_double_heater_.yml index 5650c092..2f495227 100644 --- a/tests/test_components/test_pdk_settings_ring_double_heater_.yml +++ b/tests/test_components/test_pdk_settings_ring_double_heater_.yml @@ -1,260 +1,123 @@ -name: ring_double_heater_3978285c +function: ring_double_heater +info: {} +module: gdsfactory.components.ring_double_heater +name: ring_double_heater_ef2a39cb settings: - changed: - coupler_ring: - function: coupler_ring - settings: - add_bbox: - function: add_pins_bbox_siepic - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section: - add_pins_function_module: ubcpdk.tech - add_pins_function_name: add_pins_siepic - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - length_y: 0.2 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - via_stack: - function: via_stack - settings: - layers: - - - 11 - - 0 - - - 12 - - 0 - size: - - 10 - - 10 - vias: - - null - - null - child: null - default: - bend: - function: bend_euler - coupler_ring: - function: coupler_ring - coupler_ring_top: null - cross_section: xs_sc - cross_section_heater: xs_heater_metal - cross_section_waveguide_heater: xs_sc_heater_metal - gap: 0.2 - gap_top: null - length_x: 1.0 - length_y: 0.01 - port_orientation: null + bend: + function: bend_euler + coupler_ring: + function: coupler_ring + module: gdsfactory.components.coupler_ring + settings: + add_bbox: + function: add_pins_bbox_siepic + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 + radius: 10.0 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + coupler_ring_top: null + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 radius: 10.0 - straight: - function: straight - straight_heater: - function: straight - via_stack: - function: via_stack - settings: - layers: - - HEATER - - M2 - - MTOP - size: - - 4 - - 4 - vias: - - null - - function: via - settings: - enclosure: 2 - layer: VIA1 - - function: via - settings: - layer: VIA2 - via_stack_offset: - - 1 - - 0 - full: - bend: - function: bend_euler - coupler_ring: - function: coupler_ring - settings: - add_bbox: - function: add_pins_bbox_siepic - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - coupler_ring_top: null - cross_section: - add_pins_function_module: ubcpdk.tech - add_pins_function_name: add_pins_siepic - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section_heater: xs_heater_metal - cross_section_waveguide_heater: xs_sc_heater_metal - gap: 0.2 - gap_top: null - length_x: 1.0 - length_y: 0.2 - port_orientation: null - radius: 10.0 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - straight_heater: - function: straight - via_stack: - function: via_stack - settings: - layers: - - - 11 - - 0 - - - 12 - - 0 - size: - - 10 - - 10 - vias: - - null - - null - via_stack_offset: - - 1 - - 0 - function_name: ring_double_heater - info: {} - info_version: 2 - module: gdsfactory.components.ring_double_heater - name: ring_double_heater_3978285c + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + cross_section_heater: xs_heater_metal + cross_section_waveguide_heater: xs_sc_heater_metal + gap: 0.2 + gap_top: null + length_x: 1.0 + length_y: 0.2 + port_orientation: null + radius: 10.0 + straight: + function: straight + module: gdsfactory.components.straight + settings: + add_bbox: + function: add_padding + module: gdsfactory.add_padding + settings: + bottom: 0.5 + default: 0 + layers: + - - 68 + - 0 + top: 0.5 + cross_section: xs_sc + straight_heater: + function: straight + via_stack: + function: via_stack + module: gdsfactory.components.via_stack + settings: + layers: + - - 11 + - 0 + - - 12 + - 0 + size: + - 10 + - 10 + vias: + - null + - null + via_stack_offset: + - 1 + - 0 diff --git a/tests/test_components/test_pdk_settings_ring_single_.yml b/tests/test_components/test_pdk_settings_ring_single_.yml index 37c86cc8..ec536b26 100644 --- a/tests/test_components/test_pdk_settings_ring_single_.yml +++ b/tests/test_components/test_pdk_settings_ring_single_.yml @@ -1,201 +1,101 @@ -name: ring_single_1e0aa082 +function: ring_single +info: {} +module: gdsfactory.components.ring_single +name: ring_single_7c86ae28 settings: - changed: - bend: - function: bend_euler_sc - coupler_ring: - function: coupler_ring - settings: - add_bbox: - function: add_pins_bbox_siepic - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section: - add_pins_function_module: ubcpdk.tech - add_pins_function_name: add_pins_siepic - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - pass_cross_section_to_bend: false - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - child: null - default: - bend: - function: bend_euler - bend_coupler: - function: bend_euler - coupler_ring: - function: coupler_ring - cross_section: xs_sc - gap: 0.2 - length_x: 4.0 - length_y: 0.6 - pass_cross_section_to_bend: true + bend: + function: bend_euler_sc + bend_coupler: + function: bend_euler + coupler_ring: + function: coupler_ring + module: gdsfactory.components.coupler_ring + settings: + add_bbox: + function: add_pins_bbox_siepic + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 + radius: 10.0 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 radius: 10.0 - straight: - function: straight - full: - bend: - function: bend_euler_sc - bend_coupler: - function: bend_euler - coupler_ring: - function: coupler_ring - settings: - add_bbox: - function: add_pins_bbox_siepic - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section: - add_pins_function_module: ubcpdk.tech - add_pins_function_name: add_pins_siepic - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - gap: 0.2 - length_x: 4.0 - length_y: 0.6 - pass_cross_section_to_bend: false - radius: 10.0 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - function_name: ring_single - info: {} - info_version: 2 - module: gdsfactory.components.ring_single - name: ring_single_1e0aa082 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + gap: 0.2 + length_x: 4.0 + length_y: 0.6 + pass_cross_section_to_bend: false + radius: 10.0 + straight: + function: straight + module: gdsfactory.components.straight + settings: + add_bbox: + function: add_padding + module: gdsfactory.add_padding + settings: + bottom: 0.5 + default: 0 + layers: + - - 68 + - 0 + top: 0.5 + cross_section: xs_sc diff --git a/tests/test_components/test_pdk_settings_ring_single_heater_.yml b/tests/test_components/test_pdk_settings_ring_single_heater_.yml index 950f62a2..408742fb 100644 --- a/tests/test_components/test_pdk_settings_ring_single_heater_.yml +++ b/tests/test_components/test_pdk_settings_ring_single_heater_.yml @@ -1,253 +1,120 @@ -name: ring_single_heater_e488dd8d +function: ring_single_heater +info: {} +module: gdsfactory.components.ring_single_heater +name: ring_single_heater_04aaba3d settings: - changed: - coupler_ring: - function: coupler_ring - settings: - add_bbox: - function: add_pins_bbox_siepic - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section: - add_pins_function_module: ubcpdk.tech - add_pins_function_name: add_pins_siepic - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - via_stack: - function: via_stack - settings: - layers: - - - 11 - - 0 - - - 12 - - 0 - size: - - 10 - - 10 - vias: - - null - - null - child: null - default: - bend: - function: bend_euler - bend_coupler: - function: bend_euler - coupler_ring: - function: coupler_ring - cross_section: xs_sc - cross_section_waveguide_heater: xs_sc_heater_metal - gap: 0.2 - length_x: 4.0 - length_y: 0.6 - port_orientation: null + bend: + function: bend_euler + bend_coupler: + function: bend_euler + coupler_ring: + function: coupler_ring + module: gdsfactory.components.coupler_ring + settings: + add_bbox: + function: add_pins_bbox_siepic + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 + radius: 10.0 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 radius: 10.0 - straight: - function: straight - via_stack: - function: via_stack - settings: - layers: - - HEATER - - M2 - - MTOP - size: - - 4 - - 4 - vias: - - null - - function: via - settings: - enclosure: 2 - layer: VIA1 - - function: via - settings: - layer: VIA2 - via_stack_offset: - - 0 - - 0 - full: - bend: - function: bend_euler - bend_coupler: - function: bend_euler - coupler_ring: - function: coupler_ring - settings: - add_bbox: - function: add_pins_bbox_siepic - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section: - add_pins_function_module: ubcpdk.tech - add_pins_function_name: add_pins_siepic - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section_waveguide_heater: xs_sc_heater_metal - gap: 0.2 - length_x: 4.0 - length_y: 0.6 - port_orientation: null - radius: 10.0 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - via_stack: - function: via_stack - settings: - layers: - - - 11 - - 0 - - - 12 - - 0 - size: - - 10 - - 10 - vias: - - null - - null - via_stack_offset: - - 0 - - 0 - function_name: ring_single_heater - info: {} - info_version: 2 - module: gdsfactory.components.ring_single_heater - name: ring_single_heater_e488dd8d + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + cross_section_waveguide_heater: xs_sc_heater_metal + gap: 0.2 + length_x: 4.0 + length_y: 0.6 + port_orientation: null + radius: 10.0 + straight: + function: straight + module: gdsfactory.components.straight + settings: + add_bbox: + function: add_padding + module: gdsfactory.add_padding + settings: + bottom: 0.5 + default: 0 + layers: + - - 68 + - 0 + top: 0.5 + cross_section: xs_sc + via_stack: + function: via_stack + module: gdsfactory.components.via_stack + settings: + layers: + - - 11 + - 0 + - - 12 + - 0 + size: + - 10 + - 10 + vias: + - null + - null + via_stack_offset: + - 0 + - 0 diff --git a/tests/test_components/test_pdk_settings_ring_with_crossing_.yml b/tests/test_components/test_pdk_settings_ring_with_crossing_.yml index 02e98719..d3b8041a 100644 --- a/tests/test_components/test_pdk_settings_ring_with_crossing_.yml +++ b/tests/test_components/test_pdk_settings_ring_with_crossing_.yml @@ -1,145 +1,70 @@ -name: ring_single_dut_4cfcc769 +function: ring_single_dut +info: {} +module: gdsfactory.components.ring_single_dut +name: ring_single_dut_b930ab5b settings: - changed: - bend: - function: bend_euler_sc - component: - function: ebeam_crossing4_2ports - coupler: - function: coupler_ring - settings: - add_bbox: - function: add_pins_bbox_siepic - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section: xs_sc - port_name: o4 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - child: null - default: - bend: - function: bend_euler - component: - function: taper - settings: - width2: 3 - coupler: - function: coupler_ring - gap: 0.2 - length_x: 4 - length_y: 0 - port_name: o1 - radius: 5.0 - straight: - function: straight - with_component: true - full: - bend: - function: bend_euler_sc - component: - function: ebeam_crossing4_2ports - coupler: - function: coupler_ring - settings: - add_bbox: - function: add_pins_bbox_siepic - cross_section: - add_pins_function_module: gdsfactory.add_pins - add_pins_function_name: null - auto_widen: false - auto_widen_minimum_length: 200.0 - bbox_layers: null - bbox_offsets: null - components_along_path: [] - end_straight_length: 0.01 - gap: 3.0 - info: {} - min_length: 0.01 - radius: 10.0 - sections: - - hidden: false - insets: null - layer: WG - name: _default - offset: 0.0 - offset_function: null - port_names: - - o1 - - o2 - port_types: - - optical - - optical - simplify: null - width: 0.5 - width_function: null - start_straight_length: 0.01 - taper_length: 10.0 - width_wide: null - cross_section: xs_sc - gap: 0.2 - length_x: 4 - length_y: 0 - port_name: o4 - radius: 5.0 - straight: - function: straight - settings: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - cross_section: xs_sc - with_component: true - function_name: ring_single_dut - info: - component: {} - info_version: 2 - module: gdsfactory.components.ring_single_dut - name: ring_single_dut_4cfcc769 + bend: + function: bend_euler_sc + component: + function: ebeam_crossing4_2ports + coupler: + function: coupler_ring + module: gdsfactory.components.coupler_ring + settings: + add_bbox: + function: add_pins_bbox_siepic + cross_section: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + auto_widen: false + auto_widen_minimum_length: 200.0 + bbox_layers: null + bbox_offsets: null + components_along_path: [] + end_straight_length: 0.01 + gap: 3.0 + info: {} + min_length: 0.01 + radius: 10.0 + radius_min: 5.0 + sections: + - hidden: false + insets: null + layer: WG + name: _default + offset: 0.0 + offset_function: null + port_names: + - o1 + - o2 + port_types: + - optical + - optical + simplify: null + width: 0.5 + width_function: null + start_straight_length: 0.01 + taper_length: 10.0 + width_wide: null + cross_section: xs_sc + gap: 0.2 + length_x: 4 + length_y: 0 + port_name: o4 + radius: 5.0 + straight: + function: straight + module: gdsfactory.components.straight + settings: + add_bbox: + function: add_padding + module: gdsfactory.add_padding + settings: + bottom: 0.5 + default: 0 + layers: + - - 68 + - 0 + top: 0.5 + cross_section: xs_sc + with_component: true diff --git a/tests/test_components/test_pdk_settings_spiral_.yml b/tests/test_components/test_pdk_settings_spiral_.yml index 2ff4d841..21eef967 100644 --- a/tests/test_components/test_pdk_settings_spiral_.yml +++ b/tests/test_components/test_pdk_settings_spiral_.yml @@ -1,38 +1,20 @@ +function: spiral_external_io +info: + length: 9003.302 +module: gdsfactory.components.spiral_external_io name: spiral_external_io settings: - changed: {} - child: null - default: - N: 6 - bend: - function: bend_euler - cross_section: xs_sc - inner_loop_spacing_offset: 0.0 - length: null - with_inner_ports: false - x_inner_length_cutback: 300.0 - x_inner_offset: 0.0 - xspacing: 3.0 - y_straight_inner_top: 0.0 - y_straight_outer_offset: 0.0 - yspacing: 3.0 - full: - N: 6 - bend: - function: bend_euler - cross_section: xs_sc - inner_loop_spacing_offset: 0.0 - length: null - with_inner_ports: false - x_inner_length_cutback: 300.0 - x_inner_offset: 0.0 - xspacing: 3.0 - y_straight_inner_top: 0.0 - y_straight_outer_offset: 0.0 - yspacing: 3.0 - function_name: spiral_external_io - info: - length: 9003.302 - info_version: 2 - module: gdsfactory.components.spiral_external_io - name: spiral_external_io + N: 6 + bend: + function: bend_euler + cross_section: xs_sc + inner_loop_spacing_offset: 0.0 + length: null + mirror_straight: false + with_inner_ports: false + x_inner_length_cutback: 300.0 + x_inner_offset: 0.0 + xspacing: 3.0 + y_straight_inner_top: 0.0 + y_straight_outer_offset: 0.0 + yspacing: 3.0 diff --git a/tests/test_components/test_pdk_settings_straight_.yml b/tests/test_components/test_pdk_settings_straight_.yml index 97f2b9b1..521abccd 100644 --- a/tests/test_components/test_pdk_settings_straight_.yml +++ b/tests/test_components/test_pdk_settings_straight_.yml @@ -1,50 +1,28 @@ -name: straight_8c41fd35 +function: straight +info: + length: 10.0 + route_info_length: 10.0 + route_info_type: xs_sc + route_info_weight: 10.0 + route_info_xs_sc_length: 10.0 + width: 0.5 +module: gdsfactory.components.straight +name: straight_6cf27063 settings: - changed: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - child: null - default: - add_bbox: null - add_pins: true - cross_section: xs_sc - layer: null - length: 10.0 - npoints: 2 - width: null - full: - add_bbox: - function: add_padding - settings: - bottom: 0.5 - default: 0 - layers: - - - 68 - - 0 - top: 0.5 - add_pins: true - cross_section: xs_sc - layer: null - length: 10.0 - npoints: 2 - width: null - function_name: straight - info: - cross_section: xs_sc - length: 10.0 - route_info: - length: 10.0 - type: xs_sc - weight: 10.0 - xs_sc_length: 10.0 - width: 0.5 - info_version: 2 - module: gdsfactory.components.straight - name: straight_8c41fd35 + add_bbox: + function: add_padding + module: gdsfactory.add_padding + settings: + bottom: 0.5 + default: 0 + layers: + - - 68 + - 0 + top: 0.5 + add_pins: true + cross_section: xs_sc + layer: null + length: 10.0 + npoints: 2 + post_process: null + width: null diff --git a/tests/test_components/test_pdk_settings_straight_one_pin_.yml b/tests/test_components/test_pdk_settings_straight_one_pin_.yml index c549eebe..6d949f67 100644 --- a/tests/test_components/test_pdk_settings_straight_one_pin_.yml +++ b/tests/test_components/test_pdk_settings_straight_one_pin_.yml @@ -1,27 +1,15 @@ +function: straight_one_pin +info: {} +module: ubcpdk.components name: straight_one_pin settings: - changed: {} - child: null - default: - cross_section: - function: cross_section - settings: - add_pins_function_module: ubcpdk.tech - add_pins_function_name: add_pins_siepic - bbox_layers: null - bbox_offsets: null - length: 1 - full: - cross_section: - function: cross_section - settings: - add_pins_function_module: ubcpdk.tech - add_pins_function_name: add_pins_siepic - bbox_layers: null - bbox_offsets: null - length: 1 - function_name: straight_one_pin - info: {} - info_version: 2 - module: ubcpdk.components - name: straight_one_pin + cross_section: + function: cross_section + module: gdsfactory.cross_section + settings: + add_pins_function_module: ubcpdk.tech + add_pins_function_name: add_pins_siepic + bbox_layers: null + bbox_offsets: null + radius_min: 5 + length: 1 diff --git a/tests/test_components/test_pdk_settings_taper_.yml b/tests/test_components/test_pdk_settings_taper_.yml index bdc3a184..03f06d20 100644 --- a/tests/test_components/test_pdk_settings_taper_.yml +++ b/tests/test_components/test_pdk_settings_taper_.yml @@ -1,42 +1,23 @@ +function: taper +info: + length: 10.0 + width1: 0.5 + width2: 0.5 +module: gdsfactory.components.taper name: taper settings: - changed: {} - child: null - default: - add_pins: true - cross_section: xs_sc - length: 10.0 - port: null - port_order_name: - - o1 - - o2 - port_order_types: - - optical - - optical - width1: 0.5 - width2: null - with_bbox: true - with_two_ports: true - full: - add_pins: true - cross_section: xs_sc - length: 10.0 - port: null - port_order_name: - - o1 - - o2 - port_order_types: - - optical - - optical - width1: 0.5 - width2: null - with_bbox: true - with_two_ports: true - function_name: taper - info: - length: 10.0 - width1: 0.5 - width2: 0.5 - info_version: 2 - module: gdsfactory.components.taper - name: taper + add_pins: true + cross_section: xs_sc + length: 10.0 + port: null + port_order_name: + - o1 + - o2 + port_order_types: + - optical + - optical + post_process: null + width1: 0.5 + width2: null + with_bbox: true + with_two_ports: true diff --git a/tests/test_components/test_pdk_settings_terminator_short_.yml b/tests/test_components/test_pdk_settings_terminator_short_.yml index 6b6fe5d2..1ee998e4 100644 --- a/tests/test_components/test_pdk_settings_terminator_short_.yml +++ b/tests/test_components/test_pdk_settings_terminator_short_.yml @@ -1,11 +1,5 @@ +function: terminator_short +info: {} +module: ubcpdk.components name: terminator_short -settings: - changed: {} - child: null - default: {} - full: {} - function_name: terminator_short - info: {} - info_version: 2 - module: ubcpdk.components - name: terminator_short +settings: {} diff --git a/tests/test_components/test_pdk_settings_thermal_phase_shifter0_.yml b/tests/test_components/test_pdk_settings_thermal_phase_shifter0_.yml index 4d1c2a7f..98e820a9 100644 --- a/tests/test_components/test_pdk_settings_thermal_phase_shifter0_.yml +++ b/tests/test_components/test_pdk_settings_thermal_phase_shifter0_.yml @@ -1,13 +1,7 @@ +function: thermal_phase_shifter0 +info: + library: Design kits/ebeam + model: thermal_phase_shifters +module: ubcpdk.components name: thermal_phase_shifter0 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: thermal_phase_shifter0 - info: - library: Design kits/ebeam - model: thermal_phase_shifters - info_version: 2 - module: ubcpdk.components - name: thermal_phase_shifter0 +settings: {} diff --git a/tests/test_components/test_pdk_settings_thermal_phase_shifter1_.yml b/tests/test_components/test_pdk_settings_thermal_phase_shifter1_.yml index 941f9336..918cefb2 100644 --- a/tests/test_components/test_pdk_settings_thermal_phase_shifter1_.yml +++ b/tests/test_components/test_pdk_settings_thermal_phase_shifter1_.yml @@ -1,13 +1,7 @@ +function: thermal_phase_shifter1 +info: + library: Design kits/ebeam + model: thermal_phase_shifters +module: ubcpdk.components name: thermal_phase_shifter1 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: thermal_phase_shifter1 - info: - library: Design kits/ebeam - model: thermal_phase_shifters - info_version: 2 - module: ubcpdk.components - name: thermal_phase_shifter1 +settings: {} diff --git a/tests/test_components/test_pdk_settings_thermal_phase_shifter2_.yml b/tests/test_components/test_pdk_settings_thermal_phase_shifter2_.yml index 06ba2110..a83cfca1 100644 --- a/tests/test_components/test_pdk_settings_thermal_phase_shifter2_.yml +++ b/tests/test_components/test_pdk_settings_thermal_phase_shifter2_.yml @@ -1,13 +1,7 @@ +function: thermal_phase_shifter2 +info: + library: Design kits/ebeam + model: thermal_phase_shifters +module: ubcpdk.components name: thermal_phase_shifter2 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: thermal_phase_shifter2 - info: - library: Design kits/ebeam - model: thermal_phase_shifters - info_version: 2 - module: ubcpdk.components - name: thermal_phase_shifter2 +settings: {} diff --git a/tests/test_components/test_pdk_settings_thermal_phase_shifter3_.yml b/tests/test_components/test_pdk_settings_thermal_phase_shifter3_.yml index 29007e21..bfa38c5b 100644 --- a/tests/test_components/test_pdk_settings_thermal_phase_shifter3_.yml +++ b/tests/test_components/test_pdk_settings_thermal_phase_shifter3_.yml @@ -1,13 +1,7 @@ +function: thermal_phase_shifter3 +info: + library: Design kits/ebeam + model: thermal_phase_shifters +module: ubcpdk.components name: thermal_phase_shifter3 -settings: - changed: {} - child: null - default: {} - full: {} - function_name: thermal_phase_shifter3 - info: - library: Design kits/ebeam - model: thermal_phase_shifters - info_version: 2 - module: ubcpdk.components - name: thermal_phase_shifter3 +settings: {} diff --git a/tests/test_components/test_pdk_settings_via_stack_heater_mtop_.yml b/tests/test_components/test_pdk_settings_via_stack_heater_mtop_.yml index 0615536a..398cd3fa 100644 --- a/tests/test_components/test_pdk_settings_via_stack_heater_mtop_.yml +++ b/tests/test_components/test_pdk_settings_via_stack_heater_mtop_.yml @@ -1,61 +1,30 @@ +function: via_stack +info: + layer: + - 12 + - 0 + size: + - 10 + - 10 + xsize: 10 + ysize: 10 +module: gdsfactory.components.via_stack name: via_stack_627f28a4 settings: - changed: - layers: - - - 11 - - 0 - - - 12 - - 0 - size: - - 10 - - 10 - vias: - - null - - null - child: null - default: - correct_size: true - layer_offsets: null - layer_port: null - layers: - - M1 - - M2 - - MTOP - size: - - 11.0 - - 11.0 - vias: - - function: via - settings: - enclosure: 2 - layer: VIA1 - - function: via - settings: - layer: VIA2 - - null - full: - correct_size: true - layer_offsets: null - layer_port: null - layers: - - - 11 - - 0 - - - 12 - - 0 - size: - - 10 - - 10 - vias: - - null - - null - function_name: via_stack - info: - layer: - - 12 + correct_size: true + layer_offsets: null + layer_port: null + layers: + - - 11 - 0 - size: - - 10.0 - - 10.0 - info_version: 2 - module: gdsfactory.components.via_stack - name: via_stack_627f28a4 + - - 12 + - 0 + post_process: null + size: + - 10 + - 10 + slot_horizontal: false + slot_vertical: false + vias: + - null + - null diff --git a/tests/test_verification.py b/tests/test_verification.py deleted file mode 100644 index 69b94b93..00000000 --- a/tests/test_verification.py +++ /dev/null @@ -1,22 +0,0 @@ -"""Test functional verification of simple layouts """ -import os - -import gdsfactory as gf - -import ubcpdk.components as uc -from ubcpdk.verification import layout_check - - -def test_verification_import_gds(): - file_path = os.path.join( - os.path.dirname(os.path.realpath(__file__)), "tests/mmi2x2.oas" - ) - c = gf.import_gds(file_path) - layout_check(c) - - -def test_verification_mzi(): - splitter = uc.ebeam_y_1550(decorator=gf.port.auto_rename_ports) - mzi = gf.components.mzi(splitter=splitter) - c = uc.add_fiber_array(component=mzi) - layout_check(c) diff --git a/ubcpdk/components.py b/ubcpdk/components.py index fa83ef48..9ab87f0a 100644 --- a/ubcpdk/components.py +++ b/ubcpdk/components.py @@ -260,7 +260,7 @@ def photonic_wirebond_surfacetaper_1550() -> gf.Component: def gc_te1310() -> gf.Component: """Return ebeam_gc_te1310 fixed cell.""" c = gf.Component() - gc = import_gc("ebeam_gc_te1310.gds", info=info1310te) + gc = import_gc("ebeam_gc_te1310.gds") gc_ref = c << gc c.add_ports(gc_ref.ports) c.copy_child_info(gc) @@ -272,6 +272,7 @@ def gc_te1310() -> gf.Component: layer=(1, 0), width=9, ) + c.info.update(info1310te) return c @@ -279,7 +280,7 @@ def gc_te1310() -> gf.Component: def gc_te1310_8deg() -> gf.Component: """Return ebeam_gc_te1310_8deg fixed cell.""" c = gf.Component() - gc = import_gc("ebeam_gc_te1310_8deg.gds", info=info1310te) + gc = import_gc("ebeam_gc_te1310_8deg.gds") gc_ref = c << gc c.add_ports(gc_ref.ports) c.copy_child_info(gc) @@ -291,6 +292,7 @@ def gc_te1310_8deg() -> gf.Component: layer=(1, 0), width=9, ) + c.info.update(info1310te) return c @@ -298,7 +300,7 @@ def gc_te1310_8deg() -> gf.Component: def gc_te1310_broadband() -> gf.Component: """Return ebeam_gc_te1310_broadband fixed cell.""" c = gf.Component() - gc = import_gc("ebeam_gc_te1310_broadband.gds", info=info1310te) + gc = import_gc("ebeam_gc_te1310_broadband.gds") gc_ref = c << gc c.add_ports(gc_ref.ports) c.copy_child_info(gc) @@ -310,6 +312,7 @@ def gc_te1310_broadband() -> gf.Component: layer=(1, 0), width=9, ) + c.info.update(info1310te) return c @@ -317,7 +320,7 @@ def gc_te1310_broadband() -> gf.Component: def gc_te1550() -> gf.Component: """Return ebeam_gc_te1550 fixed cell.""" c = gf.Component() - gc = import_gc("ebeam_gc_te1550.gds", info=info1550te) + gc = import_gc("ebeam_gc_te1550.gds") gc_ref = c << gc c.add_ports(gc_ref.ports) c.copy_child_info(gc) @@ -329,6 +332,7 @@ def gc_te1550() -> gf.Component: layer=(1, 0), width=9, ) + c.info.update(info1550te) return c @@ -336,7 +340,7 @@ def gc_te1550() -> gf.Component: def gc_te1550_90nmSlab() -> gf.Component: """Return ebeam_gc_te1550_90nmSlab fixed cell.""" c = gf.Component() - gc = import_gc("ebeam_gc_te1550_90nmSlab.gds", info=info1550te) + gc = import_gc("ebeam_gc_te1550_90nmSlab.gds") gc_ref = c << gc c.add_ports(gc_ref.ports) c.copy_child_info(gc) @@ -348,6 +352,7 @@ def gc_te1550_90nmSlab() -> gf.Component: layer=(1, 0), width=9, ) + c.info.update(info1550te) return c @@ -355,7 +360,7 @@ def gc_te1550_90nmSlab() -> gf.Component: def gc_te1550_broadband() -> gf.Component: """Return ebeam_gc_te1550_broadband fixed cell.""" c = gf.Component() - gc = import_gc("ebeam_gc_te1550_broadband.gds", info=info1550te) + gc = import_gc("ebeam_gc_te1550_broadband.gds") gc_ref = c << gc c.add_ports(gc_ref.ports) c.copy_child_info(gc) @@ -367,6 +372,7 @@ def gc_te1550_broadband() -> gf.Component: layer=(1, 0), width=9, ) + c.info.update(info1550te) return c @@ -374,7 +380,7 @@ def gc_te1550_broadband() -> gf.Component: def gc_tm1550() -> gf.Component: """Return ebeam_gc_tm1550 fixed cell.""" c = gf.Component() - gc = import_gc("ebeam_gc_tm1550.gds", info=info1550tm) + gc = import_gc("ebeam_gc_tm1550.gds") gc_ref = c << gc c.add_ports(gc_ref.ports) c.copy_child_info(gc) @@ -386,6 +392,7 @@ def gc_tm1550() -> gf.Component: layer=(1, 0), width=9, ) + c.info.update(info1550tm) return c @@ -494,6 +501,7 @@ def add_fiber_array( cross_section: CrossSectionSpec = "xs_sc", layer_label: LayerSpec = LAYER.TEXT, straight: ComponentSpec = straight, + post_process: Callable | None = None, **kwargs, ) -> Component: """Returns component with grating couplers and labels on each port. @@ -512,6 +520,8 @@ def add_fiber_array( grating_coupler: grating coupler instance, function or list of functions. cross_section: spec. layer_label: for label. + straight: straight component. + post_process: function to post process the component. """ c = gf.Component() @@ -536,6 +546,8 @@ def add_fiber_array( ref.rotate(-90) c.add_ports(ref.ports) c.copy_child_info(component) + if post_process: + c = post_process(c) return c @@ -624,7 +636,6 @@ def dbr( l1=l1, l2=l2, cross_section=xs, - decorator=None, ) dbr = c << _dbr s.connect("o2", dbr.ports["o1"]) @@ -635,18 +646,17 @@ def dbr( coupler = partial( gf.components.coupler, cross_section=tech.xs_sc_simple, - decorator=tech.add_pins_bbox_siepic, + post_process=tech.add_pins_bbox_siepic, ) coupler_ring = partial( gf.components.coupler_ring, cross_section=tech.xs_sc_simple, add_bbox=tech.add_pins_bbox_siepic, - # decorator=tech.add_pins_bbox_siepic, ) mmi1x2 = partial( gf.components.mmi1x2, cross_section=tech.xs_sc_simple, - decorator=tech.add_pins_bbox_siepic, + post_process=tech.add_pins_bbox_siepic, ) @@ -704,23 +714,13 @@ def ebeam_dc_halfring_straight( if siepic: x = tech.xs_sc_simple - c.info.update( - layout_model_port_pairs=( - ("o1", "port 1"), - ("o2", "port 2"), - ("o3", "port 4"), - ("o4", "port 3"), - ), - properties={ - "gap": gap * um, - "radius": radius * um, - "wg_thickness": thickness[LAYER.WG] * um, - "wg_width": x.width * um, - "Lc": length_x * um, - }, - component_type=["optical"], - model=model, - ) + c.info["model"] = model + c.info["gap"] = gap + c.info["radius"] = radius + c.info["wg_thickness"] = thickness[LAYER.WG] + c.info["wg_width"] = x.width + c.info["Lc"] = length_x + return c @@ -756,7 +756,7 @@ def ebeam_dc_halfring_straight( ebeam_dc_te1550 = partial( - gf.components.coupler, decorator=add_pins_bbox_siepic_remove_layers + gf.components.coupler, post_process=add_pins_bbox_siepic_remove_layers ) taper = partial(gf.components.taper) spiral = partial(gf.components.spiral_external_io) @@ -777,7 +777,7 @@ def ebeam_dc_halfring_straight( layer=LAYER.M2_ROUTER, bbox_layers=(LAYER.PAD_OPEN,), bbox_offsets=(-1.8,), - decorator=add_pins_siepic_metal, + post_process=add_pins_siepic_metal, ) @@ -830,7 +830,7 @@ def add_fiber_array_pads_rf( add_label, gf.port.auto_rename_ports_electrical ) c1 = add_pads_rf( - component=c0, decorator=rename_ports_and_add_label, orientation=orientation + component=c0, post_process=rename_ports_and_add_label, orientation=orientation ) return add_fiber_array(component=c1, **kwargs) @@ -851,10 +851,15 @@ def add_pads( c0 = gf.get_component(component) text = f"elec_{username}-{clean_name(c0.name)}_G" add_label = partial(add_label_electrical, text=text) - return add_pads_rf(component=c0, decorator=add_label, **kwargs) + return add_pads_rf(component=c, post_process=add_label, **kwargs) if __name__ == "__main__": + import ubcpdk.components as uc + + c = uc.ring_single_heater() + c = uc.add_fiber_array_pads_rf(c) + # c = ring_double(length_y=10) # c = ring_with_crossing() # c = mmi1x2() @@ -869,7 +874,8 @@ def add_pads( # c = spiral() # c = mzi_heater() # c = ring_double_heater() - c = ring_single_heater() + # c = ring_single_heater() + # c = gc_te1310() # c = ebeam_dc_halfring_straight() # c = ring_with_crossing() # c = ring_single() diff --git a/ubcpdk/import_gds.py b/ubcpdk/import_gds.py index 20c3460b..2f9a261e 100644 --- a/ubcpdk/import_gds.py +++ b/ubcpdk/import_gds.py @@ -173,13 +173,16 @@ def import_gds(gdspath, **kwargs): gdsdir=PATH.gds, library="Design kits/ebeam", model=gdspath.split(".")[0], - decorator=add_ports_from_siepic_pins, + post_process=add_ports_from_siepic_pins, **kwargs, ) -def import_gc(gdspath, **kwargs): +def import_gc(gdspath, info=None, **kwargs): c = import_gds(gdspath, **kwargs) + + if info is not None: + c.info.update(info) return gf.functions.mirror(component=c) diff --git a/ubcpdk/tech.py b/ubcpdk/tech.py index dba05cf7..0afc07cb 100644 --- a/ubcpdk/tech.py +++ b/ubcpdk/tech.py @@ -292,19 +292,19 @@ class Tech(BaseModel): ############################ # Cross-sections functions ############################ - -strip = partial( +cross_section = partial( gf.cross_section.cross_section, add_pins_function_name="add_pins_siepic", add_pins_function_module="ubcpdk.tech", + radius_min=5, +) + +strip = partial( + cross_section, cladding_layers=cladding_layers_optical_siepic, cladding_offsets=cladding_offsets_optical_siepic, ) -strip_unclad = partial( - gf.cross_section.cross_section, - add_pins_function_name="add_pins_siepic", - add_pins_function_module="ubcpdk.tech", -) +strip_unclad = strip_simple = cross_section strip_heater_metal = partial( gf.cross_section.strip_heater_metal, layer="WG", @@ -316,24 +316,19 @@ class Tech(BaseModel): add_pins_function_module="ubcpdk.tech", ) -strip_simple = gf.cross_section.cross_section strip_bbox = partial( - gf.cross_section.cross_section, + cross_section, bbox_layers=cladding_layers_optical_siepic, bbox_offsets=cladding_offsets_optical_siepic, - add_pins_function_name="add_pins_siepic", - add_pins_function_module="ubcpdk.tech", ) metal_routing = partial( - gf.cross_section.cross_section, + cross_section, layer=LAYER.M2_ROUTER, width=10.0, port_names=gf.cross_section.port_names_electrical, port_types=gf.cross_section.port_types_electrical, radius=None, - add_pins_function_name="add_pins_siepic_metal", - add_pins_function_module="ubcpdk.tech", ) heater_metal = partial( metal_routing, width=4, layer=LAYER.M1_HEATER, add_pins_function_name=None diff --git a/ubcpdk/verification.py b/ubcpdk/verification.py deleted file mode 100644 index 4bd8b755..00000000 --- a/ubcpdk/verification.py +++ /dev/null @@ -1,58 +0,0 @@ -from pathlib import Path - -import gdsfactory -import klayout.db as kdb -import pya -import SiEPIC -import SiEPIC.verification -from SiEPIC.utils import get_technology_by_name, klive - -from ubcpdk.config import PATH - - -def layout_check( - component: gdsfactory.Component, - klayout_tech_path: str | Path | None = PATH.lyt, - show_klive: bool = False, -) -> int: - """Run a layout check using SiEPIC-Tool's functional verification. - - Args: - component: gdsfactory component. - klayout_tech_path: path to the klayout technology folder. - show_klive: show results in KLayout. - """ - - gdspath = component.write_gds() - - # load in KLayout database - ly = pya.Layout() - - # load SiEPIC technology - tech = kdb.Technology() - tech.load(str(klayout_tech_path)) - tech.create_technology("UBCPDK") - ly.TECHNOLOGY = get_technology_by_name("UBCPDK") - - ly.read(str(gdspath)) - if len(ly.top_cells()) != 1: - raise ValueError("Layout can only have one top cell") - topcell = ly.top_cell() - - # perform verification - file_lyrdb = str(gdspath) + ".lyrdb" - num_errors = SiEPIC.verification.layout_check(cell=topcell, file_rdb=file_lyrdb) - - if show_klive: - klive.show(gdspath, lyrdb_filename=file_lyrdb) - - return num_errors - - -if __name__ == "__main__": - import gdsfactory as gf - - file_path = PATH.repo / "tests" / "tests" / "mmi2x2.oas" - c = gf.import_gds(file_path, read_metadata=True) - - layout_check(c)