-
Notifications
You must be signed in to change notification settings - Fork 11
update gdsfactory9.29.1 #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reviewer's GuideUpdates the project to use gdsfactory 9.29.1 and refreshes sample scripts by adding an all-cells reticle generator while removing the previous DRC error sample. Sequence diagram for generating an all-cells reticle samplesequenceDiagram
actor User
participant Script as all_cells_script
participant PDK as PDK
participant GF as gdsfactory
User->>Script: Run module as __main__
Script->>PDK: activate()
PDK-->>Script: PDK configured
User->>Script: Call all_cells()
Script->>GF: Component()
GF-->>Script: Component c
Script->>PDK: Access cells
PDK-->>Script: cells dictionary
Script->>Script: Filter cells using skip
Script->>GF: pack(cell_functions)
GF-->>Script: packed_components_list
Script->>GF: place first packed component into c
Script-->>User: Return Component c
User->>c: show()
c-->>User: Display reticle layout
Flow diagram for all_cells sample reticle generationflowchart TD
A[Start all_cells] --> B[Create new Component c]
B --> C[Read PDK.cells dictionary]
C --> D[Filter out cells whose names are in skip]
D --> E[Build list cell_functions]
E --> F[Call gf.pack on cell_functions]
F --> G[Select first packed component]
G --> H[Add packed component into c]
H --> I[Return Component c]
subgraph Main_execution_when___name___is___main__
J[Activate PDK]
J --> K[Call all_cells]
K --> L[Get Component c]
L --> M[Call c.show]
M --> N[Display reticle]
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey - I've left some high level feedback:
- The
skipdictionary inall_cells.pyis currently unused and always empty; consider either removing it or wiring it as a parameter (or populating it) so it actually controls which cells are included. - Accessing
PDK.cellsat module import time meansall_cells()depends on the state of the PDK beforePDK.activate()is called; consider moving thecell_functionslookup insideall_cells()after an explicitPDK.activate()call or clearly documenting the expected activation order.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `skip` dictionary in `all_cells.py` is currently unused and always empty; consider either removing it or wiring it as a parameter (or populating it) so it actually controls which cells are included.
- Accessing `PDK.cells` at module import time means `all_cells()` depends on the state of the PDK before `PDK.activate()` is called; consider moving the `cell_functions` lookup inside `all_cells()` after an explicit `PDK.activate()` call or clearly documenting the expected activation order.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary by Sourcery
Update the project to use gdsfactory 9.29.1 and refresh sample layouts accordingly.
New Features:
Enhancements:
Build: