KkrOutputReader

class ase2sprkkr.outputs.task_result.KkrOutputReader(input_parameters, calculator, directory, print_info=False, task_name=None)[source]

Parse SPR-KKR output streams into a TaskResult.

Execution is handled by kkrunner; this class owns only task-specific parsing and result construction.

Class hierarchy

Inheritance diagram of ase2sprkkr.outputs.task_result.KkrOutputReader


Constructor

__init__(input_parameters, calculator, directory, print_info=False, task_name=None)[source]
classmethod matches_output(output)[source]

Return whether legacy output without a task marker belongs to this reader.

create_result(output_file, input_file=None)[source]

Create the TaskResult before parsing starts.

async parse_streams(stdout, stderr, result)[source]

Parse simultaneously growing stdout and stderr streams.

Parser failures are returned to the execution backend rather than raised immediately. The backend must first observe the process exit status: a truncated output stream is often only a symptom of the executable having failed, and that failure is the more useful error.

complete_result(result, output, error, return_code)[source]

Finalize a result after the execution backend completes.

read_from_file(cls, output, error=None, return_code=0, input_file=None, directory=None)[source]

Parse output of an already finished SPR-KKR calculation.