reno.explorer.RunRow#

class reno.explorer.RunRow(trace, config, observations, **params)#

Bases: Viewer

Selector row for a specific simulation run, allowing deletion, inclusion/ exclusion from visualizations in current tab, etc.

Methods

__init__(trace, config, observations, **params)

edit_view()

Change the frontend view for this row to an editable textbox to allow changing the name.

fire_on_removed()

Trigger all callback functions registered for removed event.

fire_on_selected(selected)

Trigger all callback functions registered for selected event.

from_dict(data)

Deserialize a run into the current instance from the passed data.

on_removed(callback)

Register a function for when a simulation run is removed.

on_selected(callback)

Register a function for when a run is selected or deselected.

reset_view()

Change the frontend view for this row back to the default visual display.

servable([title, location, area, target])

Serves the object or adds it to the configured pn.state.template if in a panel serve context, writes to the DOM if in a pyodide context and returns the Panel object to allow it to display itself in a notebook context.

show([title, port, address, ...])

Starts a Bokeh server and displays the Viewable in a new tab.

to_dict()

Serialize run row to a dictionary that can be saved to file.

Attributes

Parameters:
  • trace (xr.Dataset)

  • config (dict[str, int | float | np.ndarray | reno.EquationPart])

  • observations (list[reno.Observable])

  • params (dict)

__annotations__ = {}#
__module__ = 'reno.explorer'#
__panel__()#

Required function to return the actual frontend component.

Return type:

Viewable

edit_view()#

Change the frontend view for this row to an editable textbox to allow changing the name.

Return type:

None

fire_on_removed()#

Trigger all callback functions registered for removed event.

Return type:

None

fire_on_selected(selected)#

Trigger all callback functions registered for selected event.

Parameters:

selected (bool)

Return type:

None

from_dict(data)#

Deserialize a run into the current instance from the passed data.

Parameters:

data (dict)

Return type:

None

name = 'RunRow'#
on_removed(callback)#

Register a function for when a simulation run is removed.

Callbacks should take no parameters.

Parameters:

callback (callable)

Return type:

None

on_selected(callback)#

Register a function for when a run is selected or deselected.

Callbacks should take a single boolean, True if it’s selected.

Parameters:

callback (callable)

Return type:

None

reset_view()#

Change the frontend view for this row back to the default visual display.

Return type:

None

run_name = ''#
to_dict()#

Serialize run row to a dictionary that can be saved to file. Note that currently this can get quite large as the raw trace dictionary is dumped as well.

Return type:

dict

visible = True#