load#
- Stackup.load(file_path, rename=False)[source]#
Import stackup from a file. The file format can be XML, CSV, or JSON. Valid control file must have the same number of signal layers. Signals layers can be renamed. Dielectric layers can be added and deleted.
- Parameters:
- file_path
str
,dict
Path to stackup file or dict with stackup details.
- renamebool
If rename is
False
then layer in layout not found in the stackup file are deleted. Otherwise, if the number of layer in the stackup file equals the number of stackup layer in the layout, layers are renamed according the file. Note that layer order matters, and has to be writtent from top to bottom layer in the file.
- file_path
- Returns:
- bool
True
when successful,False
when failed.
Examples
>>> from pyedb import Edb >>> edb = Edb() >>> edb.stackup.load("stackup.xml")