piglot.solver.curve.solver.CurveCase
- class CurveCase(name: str, expression: str, parametric: str, bounds: Tuple[float, float], points: int)[source]
Bases:
CaseCase for the Curve solver.
Methods
Get the expression for this case.
Get the fields to output for this case.
Return the name of the case.
Read the case from the configuration dictionary.
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.
- 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.