Expand description
§Community requirements and acceptance criteria
A common starting point is extracting one cell and selected layers from a hierarchical file, writing them on a known grid, and checking them in another tool. A photonics designer may need a cross-section for a simulation. A chip integration engineer may need to identify a missing macro. Both depend on reliable coordinates and reference resolution. Simulation import example · Missing macro report
§Sources and scope
The November 2026 review enumerated 199 issues and 45 pull requests for gdspy and 255 issues and 81 pull requests for gdstk. A purposive sample covered 40 discussions (12 gdspy, 28 gdstk) and 162 ordinary comments. Follow-up searches included KLayout, PHIDL, gdsfactory, OpenROAD, downstream simulation documentation and SEMI. Search terms included odd path widths, half-grid moves, name collisions, layer filters, OASIS memory use and property values. The sample identifies workflows and reproducible failure cases. It cannot estimate the prevalence of a requirement. gdspy issue index · gdstk issue index
§Data integrity and installation
| User need | Proposed acceptance test | Original report |
|---|---|---|
| Inspect a design without expanding a large array | Use two roots sharing a repeated child. Verify the selected root’s layers and distinguish stored references, array entries and logical instances. Measure peak memory. | Layer inventory |
| Retain only selected layers while reading OASIS | Let a discarded record update modal fields later used by a retained record. Compare the selected result with a full read followed by a filter, including labels, properties and references. Measure both on the same input. | 21 GB file · Filter proposal |
| Preserve a one-DBU path far from the origin | Exercise positive and negative half-grid coordinates, 0.5 nm and 1 nm grids, and a translated short path. Check the original and independent readbacks after two writes. | Short path · Half-grid placement |
| Discover lossy conversion before delivery | Compare paths 2 and 3 DBU wide. Round-trip the even width. Diagnose the odd width before replacing the destination. Repeat on a finer grid and check physical width and endpoints. | KLayout width diagnostic · gdstk width fix |
| Combine IP libraries with colliding names | Import two distinct definitions named TOP/UNIT, check the conflict policy and validate every remapped reference. Report an unresolved macro separately from a defined empty cell. | Name collision · Missing macro |
| Preserve property types, order and bytes | Put 5, 5.0, adjacent large integers and byte strings with significant trailing characters on neighboring shapes. Compare decoded types and values independently. | GDS property payload · OASIS property equality |
| Run a batch job on a clean machine | Install the built wheel in a fresh environment, round-trip both formats, and verify actionable exceptions and CLI exit status on bad input. | Headless deployment |
§Downstream workflows
| Workflow | What a consumer can verify | Source |
|---|---|---|
| Export vertices for analysis | Select a top cell and layer and recover every contour boundary from the packed coordinates. Specify the frame and units. Exchange files with applications that require their own cell type. | Array consumer · Tidy3D input types |
| Remap layers and datatypes | Swap two layer pairs simultaneously. Cover label layers, unselected datatypes and many-to-one mappings. | Read-time remapping |
| Compare two layout revisions | Change only a timestamp, label, cell structure or geometric edge. Compare structural, metadata and filled-geometry results separately. | KLayout comparison discussion · Deterministic GDS tests |
| Cut multiple windows through holes and arrays | Compare each clipped window to a full-layout reference by layer XOR, including holes, seams, rotated cells and reflected arrays. Record peak memory. | Large-layout clipping · Boolean hole example |
| Keep repetitions compact in OASIS | Compare existing arrays and unsorted placements with random and regular geometry. Record output size, write time and peak memory. Discovering new repetitions is a separate workload. | File-size report · KLayout save options |
| Control the cost of metadata | Measure shared and unique instance properties on identical placements. Check whether disabling derived metadata also avoids constructing it. | Unique property cost · Metadata generation |
| Understand Python data ownership | Mutate one result and inspect its sibling, then release the original owner. Test shape, dtype, writability, sharing and copying against the documented contract. | Shared mutable properties · Array type annotation |
§Measurements and open questions
The initial SKY130 cross-check covered 437 cells and 55,904 stored elements, including 6,137 labels. KLayout verified per-cell bounds and per-layer counts. A separate 64-cell OASIS fixture retained 2,560 of 256,000 rectangles. On Apple M4, median peak RSS across five repetitions was 46.97 MiB for the full rewrite and 3.20 MiB for the selected layer. KLayout found an empty XOR for that layer in every cell. A larger benchmark holds the selected output fixed and gives the exact inputs, machine, repetitions and timing boundaries. Upstream study · Benchmark report
Users have asked about native curvilinear records and GPU acceleration. A P49 MULTIGON implementation needs an accessible specification and independent fixtures. It is deferred. PyTorch device transfer is available today. A GPU geometry engine would require profiles that isolate decode, transfer, expansion and geometric work, together with correctness checks on representative files. Curvilinear OASIS discussion · SEMI working group · GPU request