[gdsii.arrow] use published pheon library for GDSII arrow read/write

This commit is contained in:
Jan Petykiewicz 2026-11-19 19:19:28 -08:00
commit 953dc4202b

View file

@ -19,6 +19,7 @@ Requirements:
* klamath (used for GDSII i/o)
Optional requirements:
* `arrow` (eager and lazy Arrow GDSII reads): pheon
* `ezdxf` (DXF i/o): ezdxf
* `oasis` (OASIS i/o): fatamorgana
* `svg` (SVG output): svgwrite
@ -31,6 +32,16 @@ Install with pip:
pip install 'masque[oasis,dxf,svg,visualization,text]'
```
Install `masque[arrow]` for the eager `masque.file.gdsii.arrow` and lazy
`masque.file.gdsii.lazy_arrow` readers. Pheon's Python package supplies PyArrow
and loads the native library bundled in its platform wheel. Installing Pheon
from source requires Rust and a native linker. For local development,
`PHEON_LIBRARY` can point the Python package to a Cargo-built shared library.
Pheon's Arrow schema requires array reference pitches to be exact signed 32-bit
integers in GDSII database units. Use `masque.file.gdsii.readfile()` or
`masque.file.gdsii.lazy.readfile()` for layouts with fractional pitches.
## Overview
A layout consists of a hierarchy of `Pattern`s stored in a single `Library`.