piglot.solver.curve package

Submodules

piglot.solver.curve.solver module

Module for Curve solver.

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

Bases: Case

Case for the Curve solver.

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.

class CurveSolver(cases: List[Case], parameters: ParameterSet, output_dir: str, tmp_dir: str, verbosity: str, parallel: int = 1)[source]

Bases: MultiCaseSolver

Curve solver.

classmethod get_case_class() Type[Case][source]

Get the case class for this solver.

Returns

Type[Case]

Case class for this solver.

Module contents