diff --git a/nbs/_meep_api_styles.ipynb b/nbs/_meep_api_styles.ipynb index 18428b69..7cbf97ac 100644 --- a/nbs/_meep_api_styles.ipynb +++ b/nbs/_meep_api_styles.ipynb @@ -16,10 +16,10 @@ "metadata": {}, "outputs": [], "source": [ - "from ubcpdk import PDK, cells\n", + "import gdsfactory as gf\n", "\n", - "PDK.activate()\n", - "c = cells.ebeam_y_1550()" + "gf.gpdk.PDK.activate()\n", + "c = gf.components.mmi1x2()" ] }, { diff --git a/nbs/_meep_api_styles.py b/nbs/_meep_api_styles.py index e110a4bd..deeb37a2 100644 --- a/nbs/_meep_api_styles.py +++ b/nbs/_meep_api_styles.py @@ -19,10 +19,10 @@ # All three produce identical `Simulation` objects — pick whichever reads best for your use case. # %% -from ubcpdk import PDK, cells +import gdsfactory as gf -PDK.activate() -c = cells.ebeam_y_1550() +gf.gpdk.PDK.activate() +c = gf.components.mmi1x2() # %% [markdown] # ## 1. Callable style (recommended) diff --git a/nbs/_meep_sbend.ipynb b/nbs/_meep_sbend.ipynb index 1b514804..231b3a89 100644 --- a/nbs/_meep_sbend.ipynb +++ b/nbs/_meep_sbend.ipynb @@ -11,7 +11,6 @@ "\n", "**Requirements:**\n", "\n", - "- UBC PDK: `uv pip install ubcpdk`\n", "- [GDSFactory+](https://gdsfactory.com) account for cloud simulation" ] }, @@ -20,7 +19,7 @@ "id": "1", "metadata": {}, "source": [ - "### Load a pcell from UBC PDK" + "### Load a component from GDSFactory" ] }, { @@ -30,11 +29,11 @@ "metadata": {}, "outputs": [], "source": [ - "from ubcpdk import PDK, cells\n", + "import gdsfactory as gf\n", "\n", - "PDK.activate()\n", + "gf.gpdk.PDK.activate()\n", "\n", - "c = cells.bend_s(size=(20.0, 5.0))\n", + "c = gf.components.bend_s(size=(20.0, 5.0))\n", "\n", "c" ] diff --git a/nbs/_meep_sbend.py b/nbs/_meep_sbend.py index 2046069b..5aee6481 100644 --- a/nbs/_meep_sbend.py +++ b/nbs/_meep_sbend.py @@ -19,18 +19,17 @@ # # **Requirements:** # -# - UBC PDK: `uv pip install ubcpdk` # - [GDSFactory+](https://gdsfactory.com) account for cloud simulation # %% [markdown] -# ### Load a pcell from UBC PDK +# ### Load a component from GDSFactory # %% -from ubcpdk import PDK, cells +import gdsfactory as gf -PDK.activate() +gf.gpdk.PDK.activate() -c = cells.bend_s(size=(20.0, 5.0)) +c = gf.components.bend_s(size=(20.0, 5.0)) c diff --git a/nbs/_meep_straight.ipynb b/nbs/_meep_straight.ipynb index 757bacf9..ca328048 100644 --- a/nbs/_meep_straight.ipynb +++ b/nbs/_meep_straight.ipynb @@ -11,7 +11,6 @@ "\n", "**Requirements:**\n", "\n", - "- UBC PDK: `uv pip install ubcpdk`\n", "- [GDSFactory+](https://gdsfactory.com) account for cloud simulation" ] }, @@ -20,7 +19,7 @@ "id": "1", "metadata": {}, "source": [ - "### Load a pcell from UBC PDK" + "### Load a component from GDSFactory" ] }, { @@ -30,11 +29,11 @@ "metadata": {}, "outputs": [], "source": [ - "from ubcpdk import PDK, cells\n", + "import gdsfactory as gf\n", "\n", - "PDK.activate()\n", + "gf.gpdk.PDK.activate()\n", "\n", - "c = cells.straight(length=20.0)\n", + "c = gf.components.straight(length=20.0)\n", "\n", "c" ] diff --git a/nbs/_meep_straight.py b/nbs/_meep_straight.py index 61f70a95..c63199dd 100644 --- a/nbs/_meep_straight.py +++ b/nbs/_meep_straight.py @@ -19,18 +19,17 @@ # # **Requirements:** # -# - UBC PDK: `uv pip install ubcpdk` # - [GDSFactory+](https://gdsfactory.com) account for cloud simulation # %% [markdown] -# ### Load a pcell from UBC PDK +# ### Load a component from GDSFactory # %% -from ubcpdk import PDK, cells +import gdsfactory as gf -PDK.activate() +gf.gpdk.PDK.activate() -c = cells.straight(length=20.0) +c = gf.components.straight(length=20.0) c diff --git a/nbs/_palace_dc.ipynb b/nbs/_palace_dc.ipynb index a269ac95..6df21e70 100644 --- a/nbs/_palace_dc.ipynb +++ b/nbs/_palace_dc.ipynb @@ -40,17 +40,17 @@ "source": [ "from pathlib import Path\n", "\n", + "import gdsfactory as gf\n", "import gdsfactory.component as gfc\n", - "from ubcpdk import PDK, cells\n", "\n", "# Use a workspace-local temp path for layer preview artifacts.\n", "gds_tmp = Path.cwd() / \".gdsfactory_tmp\"\n", "gds_tmp.mkdir(parents=True, exist_ok=True)\n", "gfc.GDSDIR_TEMP = gds_tmp\n", "\n", - "PDK.activate()\n", + "gf.gpdk.PDK.activate()\n", "\n", - "c = cells.coupler()\n", + "c = gf.components.coupler()\n", "\n", "cc = c.copy()\n", "cc.draw_ports()\n", @@ -126,7 +126,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "Active PDK: ubcpdk\n", + "Active PDK: gpdk\n", "Stack layers:\n", " - box: type=dielectric, material=sio2, gds=(999, 0), z=(-3.0, 0.0)\n", " - clad: type=dielectric, material=sio2, gds=(999, 0), z=(0.0, 1.8000000000000003)\n", @@ -146,8 +146,6 @@ } ], "source": [ - "import gdsfactory as gf\n", - "\n", "active = gf.get_active_pdk()\n", "print(\"Active PDK:\", active.name)\n", "\n", diff --git a/nbs/_palace_dc.py b/nbs/_palace_dc.py index 0765d431..76c9ad11 100644 --- a/nbs/_palace_dc.py +++ b/nbs/_palace_dc.py @@ -25,17 +25,17 @@ # %% from pathlib import Path +import gdsfactory as gf import gdsfactory.component as gfc -from ubcpdk import PDK, cells # Use a workspace-local temp path for layer preview artifacts. gds_tmp = Path.cwd() / ".gdsfactory_tmp" gds_tmp.mkdir(parents=True, exist_ok=True) gfc.GDSDIR_TEMP = gds_tmp -PDK.activate() +gf.gpdk.PDK.activate() -c = cells.coupler() +c = gf.components.coupler() cc = c.copy() cc.draw_ports() @@ -81,8 +81,6 @@ print(sim.validate_config()) # %% -import gdsfactory as gf - active = gf.get_active_pdk() print("Active PDK:", active.name) diff --git a/nbs/_palace_straight_diel_waveguide.ipynb b/nbs/_palace_straight_diel_waveguide.ipynb index a049cc2b..c9c0c71c 100644 --- a/nbs/_palace_straight_diel_waveguide.ipynb +++ b/nbs/_palace_straight_diel_waveguide.ipynb @@ -36,11 +36,11 @@ } ], "source": [ - "from ubcpdk import PDK, cells\n", + "import gdsfactory as gf\n", "\n", - "PDK.activate()\n", + "gf.gpdk.PDK.activate()\n", "\n", - "c = cells.straight(length=10.0)\n", + "c = gf.components.straight(length=10.0)\n", "\n", "cc = c.copy()\n", "cc.draw_ports()\n", diff --git a/nbs/_palace_straight_diel_waveguide.py b/nbs/_palace_straight_diel_waveguide.py index e1ea5314..f253d6d9 100644 --- a/nbs/_palace_straight_diel_waveguide.py +++ b/nbs/_palace_straight_diel_waveguide.py @@ -21,11 +21,11 @@ # ### Build straight waveguide geometry # %% -from ubcpdk import PDK, cells +import gdsfactory as gf -PDK.activate() +gf.gpdk.PDK.activate() -c = cells.straight(length=10.0) +c = gf.components.straight(length=10.0) cc = c.copy() cc.draw_ports() diff --git a/nbs/meep_2d.ipynb b/nbs/meep_2d.ipynb index a0afb1c0..690614a7 100644 --- a/nbs/meep_2d.ipynb +++ b/nbs/meep_2d.ipynb @@ -44,7 +44,7 @@ "tags": [] }, "source": [ - "### Load a pcell from UBC PDK" + "### Load a component from GDSFactory" ] }, { diff --git a/nbs/meep_2d.py b/nbs/meep_2d.py index 18bbe936..ebcde324 100644 --- a/nbs/meep_2d.py +++ b/nbs/meep_2d.py @@ -29,7 +29,7 @@ # - [GDSFactory+](https://gdsfactory.com) account for cloud simulation # %% [markdown] papermill={"duration": 0.000836, "end_time": "2026-06-12T07:45:50.783250", "exception": false, "start_time": "2026-06-12T07:45:50.782414", "status": "completed"} -# ### Load a pcell from UBC PDK +# ### Load a component from GDSFactory # %% papermill={"duration": 1.129147, "end_time": "2026-06-12T07:45:51.913152", "exception": false, "start_time": "2026-06-12T07:45:50.784005", "status": "completed"} import gdsfactory as gf diff --git a/nbs/meep_crossing.ipynb b/nbs/meep_crossing.ipynb index 5208fdbf..17b11767 100644 --- a/nbs/meep_crossing.ipynb +++ b/nbs/meep_crossing.ipynb @@ -20,7 +20,6 @@ "\n", "**Requirements:**\n", "\n", - "- UBC PDK: `uv pip install ubcpdk`\n", "- [GDSFactory+](https://gdsfactory.com) account for cloud simulation" ] }, @@ -38,7 +37,7 @@ "tags": [] }, "source": [ - "### Load a pcell from UBC PDK" + "### Load a component from GDSFactory" ] }, { @@ -74,11 +73,11 @@ } ], "source": [ - "from ubcpdk import PDK, cells\n", + "import gdsfactory as gf\n", "\n", - "PDK.activate()\n", + "gf.gpdk.PDK.activate()\n", "\n", - "c = cells.ebeam_crossing4()\n", + "c = gf.components.crossing45()\n", "\n", "c" ] diff --git a/nbs/meep_crossing.py b/nbs/meep_crossing.py index d3df57a4..20f298bb 100644 --- a/nbs/meep_crossing.py +++ b/nbs/meep_crossing.py @@ -19,18 +19,17 @@ # # **Requirements:** # -# - UBC PDK: `uv pip install ubcpdk` # - [GDSFactory+](https://gdsfactory.com) account for cloud simulation # %% [markdown] papermill={"duration": 0.002639, "end_time": "2026-04-22T11:27:09.011654", "exception": false, "start_time": "2026-04-22T11:27:09.009015", "status": "completed"} -# ### Load a pcell from UBC PDK +# ### Load a component from GDSFactory # %% papermill={"duration": 3.211213, "end_time": "2026-04-22T11:27:12.224777", "exception": false, "start_time": "2026-04-22T11:27:09.013564", "status": "completed"} -from ubcpdk import PDK, cells +import gdsfactory as gf -PDK.activate() +gf.gpdk.PDK.activate() -c = cells.ebeam_crossing4() +c = gf.components.crossing45() c diff --git a/nbs/meep_dc.ipynb b/nbs/meep_dc.ipynb index b124839f..11e5f5d4 100644 --- a/nbs/meep_dc.ipynb +++ b/nbs/meep_dc.ipynb @@ -20,7 +20,6 @@ "\n", "**Requirements:**\n", "\n", - "- UBC PDK: `uv pip install ubcpdk`\n", "- [GDSFactory+](https://gdsfactory.com) account for cloud simulation" ] }, @@ -38,7 +37,7 @@ "tags": [] }, "source": [ - "### Load a pcell from UBC PDK" + "### Load a component from GDSFactory" ] }, { @@ -74,11 +73,11 @@ } ], "source": [ - "from ubcpdk import PDK, cells\n", + "import gdsfactory as gf\n", "\n", - "PDK.activate()\n", + "gf.gpdk.PDK.activate()\n", "\n", - "c = cells.coupler()\n", + "c = gf.components.coupler()\n", "\n", "c" ] diff --git a/nbs/meep_dc.py b/nbs/meep_dc.py index 51cee90c..20dbc032 100644 --- a/nbs/meep_dc.py +++ b/nbs/meep_dc.py @@ -19,18 +19,17 @@ # # **Requirements:** # -# - UBC PDK: `uv pip install ubcpdk` # - [GDSFactory+](https://gdsfactory.com) account for cloud simulation # %% [markdown] papermill={"duration": 0.000615, "end_time": "2026-04-04T19:25:07.581837", "exception": false, "start_time": "2026-04-04T19:25:07.581222", "status": "completed"} -# ### Load a pcell from UBC PDK +# ### Load a component from GDSFactory # %% papermill={"duration": 3.633209, "end_time": "2026-04-04T19:25:11.215600", "exception": false, "start_time": "2026-04-04T19:25:07.582391", "status": "completed"} -from ubcpdk import PDK, cells +import gdsfactory as gf -PDK.activate() +gf.gpdk.PDK.activate() -c = cells.coupler() +c = gf.components.coupler() c diff --git a/nbs/meep_ring_coupler.ipynb b/nbs/meep_ring_coupler.ipynb index b7a5cc47..09495fae 100644 --- a/nbs/meep_ring_coupler.ipynb +++ b/nbs/meep_ring_coupler.ipynb @@ -20,7 +20,6 @@ "\n", "**Requirements:**\n", "\n", - "- UBC PDK: `uv pip install ubcpdk`\n", "- [GDSFactory+](https://gdsfactory.com) account for cloud simulation" ] }, @@ -38,7 +37,7 @@ "tags": [] }, "source": [ - "### Load a pcell from UBC PDK" + "### Load a component from GDSFactory" ] }, { @@ -74,11 +73,11 @@ } ], "source": [ - "from ubcpdk import PDK, cells\n", + "import gdsfactory as gf\n", "\n", - "PDK.activate()\n", + "gf.gpdk.PDK.activate()\n", "\n", - "c = cells.coupler_ring(length_x=10)\n", + "c = gf.components.coupler_ring(length_x=10)\n", "c" ] }, diff --git a/nbs/meep_ring_coupler.py b/nbs/meep_ring_coupler.py index 1350b123..ed1796a8 100644 --- a/nbs/meep_ring_coupler.py +++ b/nbs/meep_ring_coupler.py @@ -19,18 +19,17 @@ # # **Requirements:** # -# - UBC PDK: `uv pip install ubcpdk` # - [GDSFactory+](https://gdsfactory.com) account for cloud simulation # %% [markdown] papermill={"duration": 0.001984, "end_time": "2026-04-04T19:34:48.419440", "exception": false, "start_time": "2026-04-04T19:34:48.417456", "status": "completed"} -# ### Load a pcell from UBC PDK +# ### Load a component from GDSFactory # %% papermill={"duration": 2.555359, "end_time": "2026-04-04T19:34:50.976607", "exception": false, "start_time": "2026-04-04T19:34:48.421248", "status": "completed"} -from ubcpdk import PDK, cells +import gdsfactory as gf -PDK.activate() +gf.gpdk.PDK.activate() -c = cells.coupler_ring(length_x=10) +c = gf.components.coupler_ring(length_x=10) c # %% [markdown] papermill={"duration": 0.000651, "end_time": "2026-04-04T19:34:50.978192", "exception": false, "start_time": "2026-04-04T19:34:50.977541", "status": "completed"} diff --git a/nbs/meep_ybranch.ipynb b/nbs/meep_ybranch.ipynb index cf52212a..696cfe81 100644 --- a/nbs/meep_ybranch.ipynb +++ b/nbs/meep_ybranch.ipynb @@ -20,7 +20,6 @@ "\n", "**Requirements:**\n", "\n", - "- UBC PDK: `uv pip install ubcpdk`\n", "- [GDSFactory+](https://gdsfactory.com) account for cloud simulation" ] }, @@ -38,7 +37,7 @@ "tags": [] }, "source": [ - "### Load a pcell from UBC PDK" + "### Load a component from GDSFactory" ] }, { @@ -74,11 +73,11 @@ } ], "source": [ - "from ubcpdk import PDK, cells\n", + "import gdsfactory as gf\n", "\n", - "PDK.activate()\n", + "gf.gpdk.PDK.activate()\n", "\n", - "c = cells.ebeam_y_1550()\n", + "c = gf.components.mmi1x2()\n", "c" ] }, diff --git a/nbs/meep_ybranch.py b/nbs/meep_ybranch.py index d2621d19..7b0d1569 100644 --- a/nbs/meep_ybranch.py +++ b/nbs/meep_ybranch.py @@ -19,18 +19,17 @@ # # **Requirements:** # -# - UBC PDK: `uv pip install ubcpdk` # - [GDSFactory+](https://gdsfactory.com) account for cloud simulation # %% [markdown] papermill={"duration": 0.001996, "end_time": "2026-04-04T19:47:36.595345", "exception": false, "start_time": "2026-04-04T19:47:36.593349", "status": "completed"} -# ### Load a pcell from UBC PDK +# ### Load a component from GDSFactory # %% papermill={"duration": 3.17493, "end_time": "2026-04-04T19:47:39.772105", "exception": false, "start_time": "2026-04-04T19:47:36.597175", "status": "completed"} -from ubcpdk import PDK, cells +import gdsfactory as gf -PDK.activate() +gf.gpdk.PDK.activate() -c = cells.ebeam_y_1550() +c = gf.components.mmi1x2() c # %% [markdown] papermill={"duration": 0.000956, "end_time": "2026-04-04T19:47:39.774192", "exception": false, "start_time": "2026-04-04T19:47:39.773236", "status": "completed"}