rizer.boulder_plugin.panes#

Boulder output pane with the rizer plasma diagnostics.

Adds a “Plasma” tab to Boulder’s results area, shown only while a rizer plasma node (PlasmaReactor2T / HybridDischarge2T) is selected in the network graph. Renders native interactive Plotly figures (the same widget the built-in Plots tab uses) fed from the recording stage network’s states, stacked one panel per row: electron vs gas temperature, electron density, plasma voltage, radius / power balance — quantities the standard T/P/X plots cannot show. Electrical signal comparisons (generator vs plasma voltage, currents) live in the companion Scope pane (rizer.boulder_plugin.scope).

Classes#

RizerPlasmaPane

The Plasma results tab for the selected rizer plasma reactor node.

Module Contents#

class rizer.boulder_plugin.panes.RizerPlasmaPane#

Bases: boulder.output_pane_plugins.OutputPanePlugin

The Plasma results tab for the selected rizer plasma reactor node.

property plugin_id: str#

Unique identifier for this plugin.

property tab_label: str#

Label to display on the tab.

property tab_icon: str | None#

Optional icon for the tab (Bootstrap icon class).

property requires_selection: bool#

Whether this plugin requires a reactor/element to be selected.

property preferred: bool#

Open the Plasma pane by default when a run completes.

property supported_element_types: List[str]#

List of element types this plugin supports.

property supported_node_types: List[str] | None#

Reactor kinds this plugin applies to (None = any).

When set (and requires_selection is True), the GUI only shows the plugin’s tab while a node of one of these STONE kinds is selected (e.g. ["MyReactorKind"]).

is_available(context: boulder.output_pane_plugins.OutputPaneContext) → bool#

Check if this plugin should be available given the current context.

Parameters:

context – Current context information.

Returns:

True if the plugin should be shown, False otherwise.

Return type:

bool

create_content_data(context: boulder.output_pane_plugins.OutputPaneContext) → Dict[str, Any]#

Create JSON-serialisable content data for this output pane.

The returned dictionary should describe the content to render. Common shapes:

  • {"type": "image", "src": "data:image/png;base64,...", "alt": "..."}

  • {"type": "text", "content": "..."}

  • {"type": "error", "title": "...", "message": "..."}

Parameters:

context – Current context information.

Returns:

JSON-serialisable content descriptor.

Return type:

dict