This repository was archived by the owner on Oct 19, 2026. It is now read-only.
Repository navigation
Fix RobustPath half-width in OASIS output - #336
Merged
heitzmann merged 1 commit intoOct 15, 2026
Merged
Conversation
RobustPath::to_oas wrote the full path width into the PATH half-width field, so simple RobustPaths doubled in width when exported to OASIS. Fixes #335
heitzmann
approved these changes
Oct 15, 2026
Owner
|
Thanks @vera-rubin |
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
On main
c5d1e434e60aaa2695f6a6f8d242255ea56240dd, exporting a constant-widthRobustPathwithsimple_path=Trueto OASIS doubles its width. A width-2 straight path reads back as width 4, and KLayout reports 4000 DBU instead of 2000. FlexPath already stores and writes half-widths.This change multiplies RobustPath's full width by 0.5 before quantizing the OASIS PATH half-width. The existing explicit-end extension comparisons then use the corrected half-width.
The added
test_roundtrip_path_width_oaschecks width-2 round trips for FlexPath and RobustPath. Recorded Linux x86_64/CPython 3.12.3 results show the RobustPath case failing before the fix and both cases passing afterward; the patched test suite reports 93 passed. Additional checks cover widths 0.8, 2 and 4 with flush, extended and explicit ends. Round ends still read back as flush for both classes.Fixes #335
ChipLab ref: CLAB-2026-317