From bea554ff8fc26da2f102017c5629ff44e66abebb Mon Sep 17 00:00:00 2001 From: Joaquin Matres <4514346+joamatab@users.noreply.github.com> Date: Wed, 24 Apr 2024 14:14:14 -0700 Subject: [PATCH] fix docs --- notebooks/00_geometry.ipynb | 8 ++++---- notebooks/01_references.ipynb | 10 +--------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/notebooks/00_geometry.ipynb b/notebooks/00_geometry.ipynb index fe2d53508e..c52892c7e4 100644 --- a/notebooks/00_geometry.ipynb +++ b/notebooks/00_geometry.ipynb @@ -417,9 +417,9 @@ "source": [ "# Let's keep wg1 in place on the bottom, and connect the other straights to it.\n", "# To do that, on wg2 we'll grab the \"o1\" port and connect it to the \"o2\" on wg1:\n", - "wg2.connect(\"o1\", wg1.ports[\"o2\"])\n", + "wg2.connect(\"o1\", wg1.ports[\"o2\"], allow_layer_mismatch=True)\n", "# Next, on wg3 let's grab the \"o1\" port and connect it to the \"o2\" on wg2:\n", - "wg3.connect(\"o1\", wg2.ports[\"o2\"])\n", + "wg3.connect(\"o1\", wg2.ports[\"o2\"], allow_layer_mismatch=True)\n", "\n", "c.plot()" ] @@ -565,7 +565,7 @@ "outputs": [], "source": [ "# Like before, let's connect mwg1 and mwg2 together\n", - "mwg1_ref.connect(port=\"o2\", destination=mwg2_ref.ports[\"o1\"])\n", + "mwg1_ref.connect(port=\"o2\", destination=mwg2_ref.ports[\"o1\"], allow_layer_mismatch=True)\n", "c2.plot()" ] }, @@ -686,7 +686,7 @@ "source": [ "c = gf.Component(\"ref_port_sample\")\n", "mmi = c.add_ref(gf.components.mmi1x2())\n", - "bend = c.add_ref(gf.components.bend_circular(layer=(2, 0)))\n", + "bend = c.add_ref(gf.components.bend_circular(layer=(1, 0)))\n", "c.plot()" ] }, diff --git a/notebooks/01_references.ipynb b/notebooks/01_references.ipynb index 60438c8dc6..5a50514c2b 100644 --- a/notebooks/01_references.ipynb +++ b/notebooks/01_references.ipynb @@ -410,7 +410,7 @@ " c = gf.Component()\n", " r1 = c << straight(length=l1, width=w1)\n", " r2 = c << straight(length=l2, width=w2)\n", - " r2.connect(port=\"o1\", destination=r1.ports[\"o2\"])\n", + " r2.connect(port=\"o1\", destination=r1.ports[\"o2\"], allow_width_mismatch=True)\n", " c.add_port(\"o1\", port=r1.ports[\"o1\"])\n", " c.add_port(\"o2\", port=r2.ports[\"o2\"])\n", " return c\n", @@ -1352,14 +1352,6 @@ "rect1.rotate(angle=37).move([10, 20])\n", "c.plot()" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "97", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": {