class openfe.ProtocolUnitResult(*, name: str | None = None, source_key: GufeKey, inputs: dict[str, Any], outputs: dict[str, Any], stderr: dict[str, bytes] | None = None, stdout: dict[str, bytes] | None = None, start_time: datetime.datetime | None = None, end_time: datetime.datetime | None = None)#

Successful result of a single ProtocolUnit execution.

Parameters:
  • name (Optional[str]) – Name of the ProtocolUnit that produced this ProtocolUnitResult.

  • source_key (GufeKey) – Key of the ProtocolUnit that produced this ProtocolUnitResult

  • inputs (Dict[str, Any]) – Inputs to the ProtocolUnit that produced this ProtocolUnitResult. Includes any ProtocolUnitResult`s this `ProtocolUnitResult is dependent on.

  • outputs (Dict[str, Any]) – Outputs from the ProtocolUnit._execute that generated this ProtocolUnitResult.

  • stderr (dict[str, bytes] | None) – stderr output captured during execution of the ProtocolUnit. The keys are the filenames given to the captured output and the values are the bytes contained within those files after execution.

  • stdout (dict[str, bytes] | None) – stdout output captured during execution of the ProtocolUnit. The keys are the filenames given to the captured output and the values are the bytes contained within those files after execution.

  • start_time (datetime.datetime) – The start and end time for executing this Unit

  • end_time (datetime.datetime) – The start and end time for executing this Unit

property name#
property source_key#
property inputs#
property outputs#
property stderr#
property stdout#
property dependencies: list[ProtocolUnitResult]#

All results that this result was dependent on

static ok() bool#
property start_time: datetime | None#

The time execution of this Unit began

property end_time: datetime | None#

The time at which execution of this Unit finished