tidy3d.plugins.klayout.run_drc_on_gds

Contents

tidy3d.plugins.klayout.run_drc_on_gds#

class run_drc_on_gds[source]#

Bases:

Runs KLayout’s DRC on a GDS file.

Parameters:
  • config (DRCConfig) – The configuration for the DRC run.

  • max_results (Optional[int]) – Maximum number of markers to load from the results file. None (default) loads all markers.

Returns:

The DRC results object containing violations and status.

Return type:

DRCResults

Example

>>> from tidy3d.plugins.klayout.drc import run_drc_on_gds, DRCConfig
>>> config = DRCConfig(gdsfile="geom.gds", drc_runset="my_drc_runset.drc", resultsfile="drc_results.lyrdb", verbose=True) 
>>> results = run_drc_on_gds(config) 
>>> print(results) 

Inherited Common Usage