qcc_kplugin.simview

The sim-group overlay: what a Simulate (or a saved sim_groups entry) renders, drawn over the layout.

It is a set of KLayout markers on the view, like the other overlays of the plugin: never a fab layer, never in an export, a PNG of the view made by KLayout’s own tools aside. What it shows comes from qcc sim preview (the library’s guiflow.preview_groups, which runs the same build_simulation as the export, so the box, the ports and the routes are the ones of the job folder; nothing is written):

  • the box (purple) with its group, analysis and size;

  • the components that are selected (green frames), the routes that stay in the simulation (green lines; a grey one is only passing through the box, like the feedline that the box cuts) and the other components that reach into the box (grey, dashed);

  • the ports: a junction (red), a 50 ohm edge or pad termination (blue), a cut route’s stub port (orange, the stub drawn from the component’s port).

Two uses: the Simulate dialog shows the preview of what will be simulated for the chosen analysis (a temporary overlay, gone when the dialog closes), and the panel’s Sim groups tab shows a saved group (it stays until hidden and follows the design: a rebuild draws it again, a design that changed is previewed again).

Attributes

Functions

busy() → bool

cancel() → None

clear([unpin]) → None

Remove the overlay (and forget the saved group the panel was showing).

command(spec) → list[str]

qcc sim preview arguments of spec: names (instances / routes), analysis, default / whole

draw(data) → int

Draw data (a qcc sim preview result) on the design's view; returns the number of markers. None clears.

end_temp() → None

The Simulate dialog closed: back to the saved group the panel shows, or nothing.

poll() → None

Collect the finished preview (a timer calls this).

request(spec[, done, temp]) → bool

Run qcc sim preview in the background and draw the result. done(data, error) follows (error is the

show(data[, spec, pin]) → None

summary(group) → str

One line for a preview box: the group, the box size and what its ports are.

Module Contents

qcc_kplugin.simview.busy() → bool
qcc_kplugin.simview.cancel() → None
qcc_kplugin.simview.clear(unpin: bool = True) → None

Remove the overlay (and forget the saved group the panel was showing).

qcc_kplugin.simview.command(spec: dict) → list[str]

qcc sim preview arguments of spec: names (instances / routes), analysis, default / whole (no names), group (a saved group, its own selection), margin.

qcc_kplugin.simview.draw(data: dict | None) → int

Draw data (a qcc sim preview result) on the design’s view; returns the number of markers. None clears.

qcc_kplugin.simview.end_temp() → None

The Simulate dialog closed: back to the saved group the panel shows, or nothing.

qcc_kplugin.simview.poll() → None

Collect the finished preview (a timer calls this).

qcc_kplugin.simview.request(spec: dict, done=None, temp: bool = False) → bool

Run qcc sim preview in the background and draw the result. done(data, error) follows (error is the message of a failed preview, then nothing is drawn). temp: the Simulate dialog’s overlay (see end_temp()). A request that is still running is dropped. Returns False without a design.

qcc_kplugin.simview.show(data: dict, spec: dict | None = None, pin: bool = False) → None
qcc_kplugin.simview.summary(group: dict) → str

One line for a preview box: the group, the box size and what its ports are.

qcc_kplugin.simview.STATE: dict