kqcircuits.util.error_on_cell
- kqcircuits.util.error_on_cell.all_cell_parents(layout: Layout, cell: Cell) list[int][source]
Finds all parent cell indices of a given cell, including cell itself
- Parameters:
layout – The layout
cell – The cell to find parents of
Returns: list of cell indices of parent cells, where the first element is always
cellitself.
- kqcircuits.util.error_on_cell.find_cells_with_error(layout: Layout, parent_cell_index: int | None = None) list[tuple[int, str, DPoint]][source]
Find cell indices and error messages for all cells in the layout that have called the
raise_error_on_cellmethod.- Parameters:
layout (pya.Layout) – The layout.
parent_cell_index – if not None, return only errors where the given cell index is a parent
Returns: List of (cell_index, error_message, error_position) tuples.
- kqcircuits.util.error_on_cell.formatted_errors_on_cells(layout: Layout, parent_cell_index: int | None = None) str[source]
Generate a formatted string describing all errors raised on cells and where in the cell hierarchy these appear.
- Parameters:
layout – The layout
parent_cell_index – if not None, include only errors where the given cell index is a parent
Returns: Formatted multiline string