CADETProcess.comparison.Comparator.extract_solution

CADETProcess.comparison.Comparator.extract_solution#

Comparator.extract_solution(simulation_results: SimulationResults, metric: DifferenceBase) SolutionBase[source]#

Extract the solution for a given metric from the SimulationResults object.

Parameters:
simulation_resultsSimulationResults

The SimulationResults object containing the solution.

metricDifferenceBase

The difference metric object for which to extract the solution.

Returns:
SolutionBase

The solution for the given metric.

Raises:
CADETProcessError

If the solution path for the given metric is not found.