-
Notifications
You must be signed in to change notification settings - Fork 11
simpler containers #178
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
simpler containers #178
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRefactors DOE packing helpers to reuse the standard gdsfactory implementations instead of local wrappers, and slightly tightens the type signature for routing width parameters in pad-connection helpers. Class diagram for DOE packing helpers and pad connection in containers moduleclassDiagram
class ContainersModule {
+add_pads_top()
+pack_doe
+pack_doe_grid
}
class GdsfactoryCells {
+pack_doe()
+pack_doe_grid()
}
ContainersModule ..> GdsfactoryCells
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Label error. Requires at least 1 of: breaking, bug, github_actions, documentation, dependencies, enhancement, feature, maintenance, security, typing. Found: |
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 there - I've reviewed your changes - here's some feedback:
- Changing
route_widthfromfloat | list[float] | Nonetofloat | list[float]with default0alters the accepted types and may break callers that passNone, so consider either keepingNonein the type or adding explicit handling for legacyNoneusage. - Replacing the local
pack_doe/pack_doe_grid@gf.cell wrappers with direct aliases togf.c.pack_doe/gf.c.pack_doe_gridmay change cell naming/metadata and break code that relied on the previous cell definitions, so it’s worth verifying any existing call sites and, if needed, providing a deprecation layer.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Changing `route_width` from `float | list[float] | None` to `float | list[float]` with default `0` alters the accepted types and may break callers that pass `None`, so consider either keeping `None` in the type or adding explicit handling for legacy `None` usage.
- Replacing the local `pack_doe`/`pack_doe_grid` @gf.cell wrappers with direct aliases to `gf.c.pack_doe`/`gf.c.pack_doe_grid` may change cell naming/metadata and break code that relied on the previous cell definitions, so it’s worth verifying any existing call sites and, if needed, providing a deprecation layer.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Summary by Sourcery
Simplify container utilities by reusing existing packing helpers and tightening type hints.
Enhancements: