qcc_kplugin.valuesview ====================== .. py:module:: qcc_kplugin.valuesview .. autoapi-nested-parse:: The Values tab and the layout annotations of :mod:`qcc_kplugin.instance_values`. Tick *Show values in the layout* and every qubit and resonator with a value gets its f_q / α (or f_r / κ / χ) written beside it, green / amber / red by \|value − target\| / tolerance. Selecting an instance (KLayout's select tool) shows its values in the tab; clicking a row selects the instance. Markers only: the layout and design.json are not touched. The values refresh after every rebuild, Run LOM and Import results. Attributes ---------- .. autoapisummary:: qcc_kplugin.valuesview.STATE Classes ------- .. autoapisummary:: qcc_kplugin.valuesview.ValuesTab Functions --------- .. autoapisummary:: qcc_kplugin.valuesview.build_tab qcc_kplugin.valuesview.draw qcc_kplugin.valuesview.select qcc_kplugin.valuesview.selected qcc_kplugin.valuesview.values Module Contents --------------- .. py:class:: ValuesTab(tabs) .. py:method:: on_selection() .. py:method:: refresh() After a rebuild, Run LOM or Import results: collect again, refill, redraw. .. py:method:: set_on(on: bool) .. py:attribute:: items .. py:attribute:: readout .. py:attribute:: toggle .. py:attribute:: tree .. py:attribute:: vals .. py:function:: build_tab(tabs) -> ValuesTab .. py:function:: draw(vals: dict | None = None) -> int (Re)draw the annotations; returns the number of markers. Nothing is drawn while the toggle is off. .. py:function:: select(name: str) -> bool Select instance or route ``name`` with KLayout's select tool and zoom to it. .. py:function:: selected() -> list[str] .. py:function:: values() -> dict The collected values of the open design (``{element: rows}``); empty without a design. .. py:data:: STATE