-
Notifications
You must be signed in to change notification settings - Fork 12
improve sample #86
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
improve sample #86
Conversation
Reviewer's Guide by SourceryThis PR modifies a YAML-based component sample by updating pad placements, adjusting routing parameters, removing optical routes, and making PDK activation explicit. It also comments out a specific gdsfactory version dependency. Sequence diagram for PDK activation and component displaysequenceDiagram
participant User
participant Script
participant PDK
participant GDSFactory
User->>Script: Run component_from_yaml_sc.py
Script->>PDK: Activate PDK
PDK-->>Script: PDK activated
Script->>GDSFactory: Read component from YAML
GDSFactory-->>Script: Component created
Script->>User: Display component
Class diagram for updated component_from_yaml_sc.pyclassDiagram
class ComponentFromYaml {
-name: String
-instances: List
-placements: List
-routes: List
}
class Placement {
-x: Integer
-y: Integer
}
class Route {
-settings: Settings
-links: List
}
class Settings {
-cross_section: String
-separation: Integer
-route_width: Integer
-end_straight_length: Integer
-radius: Integer
}
ComponentFromYaml --> Placement
ComponentFromYaml --> Route
Route --> Settings
note for Settings "Updated attributes: route_width, radius"
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.
We've reviewed this pull request using the Sourcery rules engine. If you would also like our AI-powered code review then let us know.
|
Did you try a debugger? My guess is somewhere in gdsfactory it's not properly passed. But I can check tomorrow. |
|
I traced the issue all the way into kfactory |
|
should be fixed with kfactory 0.22.0 route width was not correctly passed on |
why does route_width gets ignored here?
@sebastian-goeldi
Summary by Sourcery
Improve the sample component YAML file by adjusting placement coordinates and routing settings, and comment out the gdsfactory dependency in the project configuration.
Enhancements:
Chores: