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
Read grid from PDK #733
Read grid from PDK #733
Conversation
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 0.01%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Looks great, thank you Brad, releasing 5.34.0 with your improvements |
I added code to read the grid size from the PDK.
I also added some fixes here and there for snapping to the grid. These issues are more apparent when using grid sizes > 1 nm, For instance, when defining a rectangular grating coupler with 5 nm grid, if you have a 15 nm trench from x = 0 to x = 15, the midpoint was previously calculated as 7.5 nm, and then snapped to the grid at x = 5 or x = 10, and then the whole trench was shifted.
There are also some random defaults fixes.
I had some commits to also snap the ports, but this actually makes less sense since they are not physical on the mask. So for a waveguide of 15 nm wide with the port in the middle at 7.5, this should not be snapped since the connecting waveguide will still have mask points at 0 and 15. Therefore, I did not include these changes.
All changes are cherry-picked from my master.