Skip to content

DRCResults

DRCResults(
violations_by_category: dict[
str, photonforge.verification.DRCViolation
],
log: str = '',
exit_code: int = 0,
cells: dict[str, photonforge.verification.DRCCell] = <factory>,
top_cell: str | None = None,
) -> None

Results of a DRC run, from any engine.

MethodDescription
in_top_cellThe marker with its coordinates moved into the top cell through the example
placementPlacement of a cell in the top cell, composed from the first reference of each

in_top_cell(
self, marker: photonforge.verification.DRCMarker
) -> photonforge.verification.DRCMarker

The marker with its coordinates moved into the top cell through the example placement of its cell. A cell placed several times is reported once, so the marker lands at that example placement only.

placement(self, cell: str) -> photonforge.verification.Placement

Placement of a cell in the top cell, composed from the first reference of each cell on the way up, as KLayout’s marker browser does. Both engines place each cell directly in the top cell.

PropertyDescription
categories
is_clean
violated_cells
violation_counts
violations_by_cell

No description available.

No description available.

No description available.

No description available.

No description available.

AttributeDescription
exit_codeint([x]) -> integer
logstr(object=”) -> str
top_cellThe type of the None singleton.

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating-point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by ’+’ or ’-’ and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer iteral.

>>> int('0b100', base=0)
4

str(object=”) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to ‘utf-8’. errors defaults to ‘strict’.

The type of the None singleton.