piglot.solver.curve.solver.CurveCase

class CurveCase(name: str, expression: str, parametric: str, bounds: Tuple[float, float], points: int)[source]

Bases: Case

Case for the Curve solver.

Methods

get_expression

Get the expression for this case.

get_fields

Get the fields to output for this case.

name

Return the name of the case.

read

Read the case from the configuration dictionary.

run

Run the case for the given set of parameters.

get_expression(parameters: ParameterSet, values: ndarray) str[source]

Get the expression for this case.

Parameters

parametersParameterSet

Parameter set for this problem.

valuesnp.ndarray

Current parameters to evaluate.

Returns

str

Expression for this case.

get_fields() List[str][source]

Get the fields to output for this case.

Returns

List[str]

Fields to output for this case.

name() str[source]

Return the name of the case.

Returns

str

Name of the case.

classmethod read(name: str, config: Dict[str, Any]) CurveCase[source]

Read the case from the configuration dictionary.

Parameters

namestr

Name of the case.

configDict[str, Any]

Configuration dictionary.

Returns

Case

Case to use for this problem.

run(parameters: ParameterSet, values: ndarray, tmp_dir: str) CaseResult[source]

Run the case for the given set of parameters.

Parameters

parametersParameterSet

Parameter set for this problem.

valuesnp.ndarray

Current parameters to evaluate.

tmp_dirstr

Temporary directory to run the problem.

Returns

CaseResult

Result of the case.