Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Apr 24, 2024
1 parent 0336a12 commit bea554f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
8 changes: 4 additions & 4 deletions notebooks/00_geometry.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
]
Expand Down Expand Up @@ -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()"
]
},
Expand Down Expand Up @@ -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()"
]
},
Expand Down
10 changes: 1 addition & 9 deletions notebooks/01_references.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit bea554f

Please sign in to comment.