kqcircuits.klayout_view

kqcircuits.klayout_view.resolve_default_layer_info(layer_name, face_id=None)[source]

Returns LayerInfo based on default_layers.

Assumes that layer_name is valid, and that face_id is valid or None.

Parameters
  • layer_name – layer name (without face prefix for face-specific layers)

  • face_id – id of the face from which this layer should be

class kqcircuits.klayout_view.KLayoutView(view=None, current=False, initialize=False)[source]

Bases: object

KLayout layout view wrapper with helper methods.

static get_active_cell_view()[source]
static get_active_layout()[source]
static get_active_cell()[source]
focus(cell)[source]

Clear view.

clear_layers()[source]

Clear view.

add_default_layers()[source]

Populate view with KQCircuits default layers.

export_layers_bitmaps(path, cell, filename='', layers_set=['mask_graphical_rep'], face_id=None)[source]
export_all_layers_bitmap(path, cell, filename='')[source]
export_pcell_png(path, cell, filename, max_size=1000)[source]

Exports pcell to .png file no bigger than max_size at either dimension.

exception kqcircuits.klayout_view.ViewException(message)[source]

Bases: Exception

exception kqcircuits.klayout_view.MissingUILibraryException[source]

Bases: kqcircuits.klayout_view.ViewException

exception kqcircuits.klayout_view.InvalidViewException(view)[source]

Bases: kqcircuits.klayout_view.ViewException

../_images/kqcircuits.klayout_view.png