SequenceAnalyzeResult#
Module: exa.core.sequence.result
- class SequenceAnalyzeResult(execution_result, dataset=<factory>, observations=<factory>, plots=<factory>, experiment_template=None, sequence_template=None, error=None, error_traceback=None, _all_errors=None)#
Bases:
SequenceAnalyzeResultDataThe analyzed end result of a Sequence.
Analogous to the
AnalyzeResultof Experiments. Contains the dataset, observations, and plots from the sequence-level analysis, as well as the execution result where it was all derived from.Can summarize the results as a report.
Attributes
execution_resultResults of the whole sequence, including analysis of the individual experiments.
datasetDataset representing the whole sequence.
observationsObservations made by analyzing the whole sequence.
plotsGenerators for plotters.
Methods
Generate and show a selected plot from
SequenceAnalyzeResultData.plots.Generate and show all plots from
SequenceAnalyzeResultData.plots.Generate a report that displays the observations and plots from the analysis.
- Parameters:
execution_result (SequenceExecuteResultData)
dataset (Dataset)
observations (LocalObservationSequence | None)
plots (dict[str, PlotDefinition])
experiment_template (str | None)
sequence_template (str | None)
error (str | None)
error_traceback (str | None)
- render_report(target='notebook', **kwargs)#
Generate a report that displays the observations and plots from the analysis.
- Parameters:
target (Literal['notebook', 'str'] | ~pathlib.Path) – The target format as string or a file path. Accepted values: “notebook”, “str” or
Pathinstance. For “notebook”, the output is a HTML document that is displayed in a Jupyter notebook. Target “str” returns HTML format in a string, and path instances saves document to a file.kwargs – Extra options passed to the template.
- Returns:
Rendered string or None if the report is rendered in notebook as a side effect.
- Return type:
str | None
- plot(key='default', **kwargs)#
Generate and show a selected plot from
SequenceAnalyzeResultData.plots.- Parameters:
key (str) – Selects which plot to show. If “default” and no “default” key exists, returns the first one.
kwargs – passed to the selected plot-generating function.
- Returns:
The generated Figure.
- Raises:
ValidationError – if no plots exist in
plots.KeyError – if key does not exist in
plots.
- Return type:
- plot_all(keys=None, **kwargs)#
Generate and show all plots from
SequenceAnalyzeResultData.plots.- Parameters:
- Returns:
The generated Figures.
- Raises:
ValidationError – if no plots exist in
plots.KeyError – if key does not exist in
plots.
- Return type:
Inheritance
