exa.core.sequence.wrap_analyze.wrap_experiment_analyze#
- wrap_experiment_analyze(experiment, custom_analysis=None, **kwargs)#
Wraps
Experiment.analyze()by recording any caught exception detail into the result.In the event of an exception, a form of stub analysis is performed. This merely conveys the latest run results to the returned analyze result in order to have the data available. Additionally, the full exception traceback is stored in the result.
- Parameters:
experiment (Experiment) – the experiment instance to call .analyze on.
custom_analysis (Callable[[...], AnalyzeResult] | None) – Custom analysis function to call for the experiment instead of
Experiment.analyze(). If not provided, will callexperiment.analyze(**kwargs).kwargs – keyword arguments to pass to .analyze.
- Returns:
An instance of
AnalyzeResult. Any error detail is recorded to the returned instance.- Return type: