OutputReader
- class ase2sprkkr.outputs.task_result.OutputReader(input_parameters, calculator, directory, *args, **kwargs)[source]
Process reader, that construct (a descendant of) InputParametersResult as a result. Subclasses should specify result_class class property.
Class hierarchy
Constructor
- input_parameters
Input parameters, that command to read the output (thus probably the ones, that run the process that produced the output. It is used e.g. for determining the potential file, which belongs to the output.
- calculator
Calculator, that can be used for further processing of the results.
- directory
Directory, to wich are the relative paths in the output related.
- result(*args)[source]
This function is for postprocessing the results.
It is intended to be predefined in the descendants
- Parameters
output (mixed) – Result of the self.read_output
error (mixed) – Result of the self.read_error
wait (int) – The process return value
- Returns
out – Currently, the tuple (output, error) is returned, however, subclasses can return anything they want.
- Return type
mixed