gdstk.read_oas

gdstk.read_oas(infile, unit=0, tolerance=0) gdstk.Library

Import a library from an OASIS stream file.

Parameters:
  • infile (str or pathlib.Path) – Name of the input file.

  • unit (number) – If greater than zero, convert the imported geometry to the this unit.

  • tolerance (number) – Default tolerance for loaded paths and round shapes. If zero or negative, the library rounding size is used (precision / unit).

Returns:

The imported library.

Examples

>>> library = gdstk.read_oas("layout.oas")
>>> top_cells = library.top_level()