This module contains class that represents a GDSII library.
Bases: list
GDSII library class. This class is derived from list and can contain one one more instances of gdsii.structure.Structure.
Initialize the library. mod_time and acc_time are set to current UTC time by default.
GDSII file verion (int). Number as found in a GDSII file. For example value is 5 for GDSII v5 and 0x600 for GDSII v6.
Library name (bytes).
Size of database unit in meters (float).
Size of user unit in database units (float).
Last modification time (datetime).
Last access time (datetime).
Number of pages in the library directory (int, optional).
Name of spacing rules file (bytes, optional).
ACL data (list of tuples (GID, UID, ACCESS), optional).
Names of reference libraries (bytes, optional). See GDSII stream format documentation for format.
Names of font definition files (bytes, optional). The content is not parsed, see GDSII stream format documentation for format.
Name of attribute definition file (bytes, optional).
Number of copies for deleted structures (int, optional)
Masks for filtered format (list of bytes, optional).
Load a GDS library from a file.
Parameters: | stream – a file or file-like object opened for reading in binary mode. |
---|---|
Returns: | a new library. |
Save the library into a file.
Parameters: | stream – a file or file-like object opened for writing in binary mode. |
---|