Skip to content

Replace ubcpdk with gdsfactory.components in example notebooks#183

Open
jackgdsf wants to merge 2 commits into
gdsfactory:mainfrom
jackgdsf:remove-ubcpdk-dependency
Open

Replace ubcpdk with gdsfactory.components in example notebooks#183
jackgdsf wants to merge 2 commits into
gdsfactory:mainfrom
jackgdsf:remove-ubcpdk-dependency

Conversation

@jackgdsf

Copy link
Copy Markdown
Contributor

Closes #182

Summary

  • Replace all ubcpdk imports in 9 example notebooks with gdsfactory.components equivalents
  • Use gf.gpdk.PDK.activate() instead of ubcpdk PDK activation
  • Update markdown headers and requirements sections to remove ubcpdk references
  • Both .py and .ipynb files updated consistently

Component mapping

ubcpdk gdsfactory
cells.straight gf.components.straight
cells.bend_s gf.components.bend_s
cells.coupler gf.components.coupler
cells.coupler_ring gf.components.coupler_ring
cells.ebeam_y_1550 gf.components.mmi1x2
cells.ebeam_crossing4 gf.components.crossing45

Affected files (20)

9 .py + 9 .ipynb notebook pairs, plus meep_2d.py/.ipynb (header update only)

Test plan

  • Verify notebooks run with gdsfactory generic PDK
  • Check port names match for all replacement components

Reminder: AI-created PRs still require human review of the actual code changes before merge. I will open the PR, but a human must review and approve it.

…ooks

All 9 notebooks under nbs/ that imported ubcpdk now use
gdsfactory.components and gf.gpdk.PDK instead, removing the
external PDK dependency for running examples.

Component mapping:
- cells.straight → gf.components.straight
- cells.bend_s → gf.components.bend_s
- cells.coupler → gf.components.coupler
- cells.coupler_ring → gf.components.coupler_ring
- cells.ebeam_y_1550 → gf.components.mmi1x2
- cells.ebeam_crossing4 → gf.components.crossing45
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.76%. Comparing base (a3985cf) to head (e9ee796).
⚠️ Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #183      +/-   ##
==========================================
+ Coverage   59.43%   60.76%   +1.32%     
==========================================
  Files          62       65       +3     
  Lines        8804     9665     +861     
  Branches     1755     1946     +191     
==========================================
+ Hits         5233     5873     +640     
- Misses       3016     3128     +112     
- Partials      555      664     +109     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- _palace_dc.ipynb: reorder imports (gdsfactory as gf before gdsfactory.component)
- meep_2d.ipynb: fix doubled gf.gpdk.gf.gpdk.PDK.activate() → gf.gpdk.PDK.activate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove ubcpdk dependency from example notebooks

1 participant