Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions nbs/_meep_api_styles.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions nbs/_meep_api_styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 4 additions & 5 deletions nbs/_meep_sbend.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions nbs/_meep_sbend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 4 additions & 5 deletions nbs/_meep_straight.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions nbs/_meep_straight.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 4 additions & 6 deletions nbs/_palace_dc.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions nbs/_palace_dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -81,8 +81,6 @@
print(sim.validate_config())

# %%
import gdsfactory as gf

active = gf.get_active_pdk()
print("Active PDK:", active.name)

Expand Down
6 changes: 3 additions & 3 deletions nbs/_palace_straight_diel_waveguide.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions nbs/_palace_straight_diel_waveguide.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion nbs/meep_2d.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nbs/meep_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions nbs/meep_crossing.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions nbs/meep_crossing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 4 additions & 5 deletions nbs/meep_dc.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions nbs/meep_dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 4 additions & 5 deletions nbs/meep_ring_coupler.ipynb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading