bencher.results.volume_result
Classes
Module Contents
- class bencher.results.volume_result.VolumeResult(bench_cfg: bencher.bench_cfg.BenchCfg)
Bases:
bencher.results.bench_result_base.BenchResultBase- to_plot(result_var: param.Parameter | None = None, override: bool = True, **kwargs: Any) panel.panel | None
Generates a 3d volume plot from benchmark data.
- Parameters:
result_var (Parameter | None) – The result variable to plot. If None, uses the default.
override (bool) – Whether to override filter restrictions. Defaults to True.
**kwargs (Any) – Additional keyword arguments passed to the plot rendering.
- Returns:
A panel containing the volume plot if data is appropriate, otherwise returns filter match results.
- Return type:
pn.panel | None
- to_volume(result_var: param.Parameter | None = None, override: bool = True, target_dimension: int = 3, **kwargs)
Generates a 3D volume plot from benchmark data.
This method applies filters to ensure the data is appropriate for a volume plot and then passes the filtered data to to_volume_ds for rendering.
- Parameters:
result_var (Parameter, optional) – The result variable to plot. If None, uses the default.
override (bool, optional) – Whether to override filter restrictions. Defaults to True.
target_dimension (int, optional) – The target dimensionality for data filtering. Defaults to 3.
**kwargs – Additional keyword arguments passed to the plot rendering.
- Returns:
- A panel containing the volume plot if data is appropriate,
otherwise returns filter match results.
- Return type:
pn.pane.Plotly | None
- to_volume_ds(dataset: xarray.Dataset, result_var: param.Parameter, width=600, height=600) panel.pane.Plotly | None
Given a benchCfg generate a 3D surface plot :returns: A 3d volume plot as a holoview in a pane :rtype: pn.pane.Plotly