Previous topic

gdsii.library — interface to a GDSII library

Next topic

gdsii.elements – interface to GDSII elements

This Page

gdsii.structure — interface to a GDSII structure

This module contains class that represents a GDSII structure.

class gdsii.structure.Structure(name, mod_time=None, acc_time=None)

Bases: list

GDSII structure class. This class is derived for list and can contain one or more elements from gdsii.elements.

GDS syntax for the structure:
structure ::=  BGNSTR
               STRNAME
               [STRCLASS]
               {element}*
               ENDSTR
__init__(name, mod_time=None, acc_time=None)

Initialize the structure. mod_time and acc_time are set to current UTC time by default.

Instance attributes:
name

Structure name (bytes).

mod_time

Last modification time (datetime).

acc_time

Last access time (datetime).

strclass

Structure class (int, optional).