piglot.solver.links.solver.LinksCase
- class LinksCase(name: str, fields: Dict[str, OutputField], generator: InputDataGenerator, links: str, mpi_command: str | None = None)[source]
Bases:
InputFileCaseClass for Links cases.
Methods
Get the dependencies for a given input file.
Get the fields to output for this case.
Get the supported fields for this input file type.
Return the name of the case.
Read the case from the configuration dictionary.
Run the case for the given set of parameters.
- classmethod get_dependencies(input_file: str) Tuple[List[str], List[str]][source]
Get the dependencies for a given input file.
Parameters
- input_filestr
Input file to check for dependencies.
Returns
- Tuple[List[str], List[str]]
Substitution and copy dependencies for this input file.
- get_fields() List[str]
Get the fields to output for this case.
Returns
- List[str]
Fields to output for this case.
- classmethod get_supported_fields() Dict[str, Type[OutputField]][source]
Get the supported fields for this input file type.
Returns
- Dict[str, Type[OutputField]]
Names and supported fields for this input file type.
- classmethod read(name: str, config: Dict[str, Any]) V
Read the case from the configuration dictionary.
Parameters
- namestr
Name of the case.
- configDict[str, Any]
Configuration dictionary.
Returns
- InputFileCase
Case to use for this problem.
- run(parameters: ParameterSet, values: ndarray, tmp_dir: str) CaseResult
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.