SequenceContextData#

Module: exa.core.sequence.interface

class SequenceContextData(*, sequence, sequence_run_id=<factory>, executed_nodes=[], tags=[], custom_experiment_analyses={}, error=None, error_traceback=None)#

Bases: BaseModel

Data representation of the execution context.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Attributes

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

sequence

Sequence that used this context.

sequence_run_id

Unique ID of the execution.

executed_nodes

List of run IDs and analysis args of individual executed nodes.

tags

Tags used to tag any observations during execution and the resulting final analysis.

custom_experiment_analyses

Custom analyze functions to call instead of the normal experiment analysis.

error

Optional string to store the summary of a possible error during execution.

error_traceback

Optional string to store the traceback of a possible error during execution.

Methods

serialize_custom_experiment_analyses

Serialize custom experiment analyses.

validate_custom_experiment_analyses

Cast str fqdn to type.

Parameters:
sequence: SequenceData#

Sequence that used this context.

sequence_run_id: UUID#

Unique ID of the execution.

executed_nodes: list[NodeExecution]#

List of run IDs and analysis args of individual executed nodes.

tags: list[str]#

Tags used to tag any observations during execution and the resulting final analysis.

custom_experiment_analyses: dict[str, CustomExperimentAnalysis]#

Custom analyze functions to call instead of the normal experiment analysis.

error: str | None#

Optional string to store the summary of a possible error during execution.

error_traceback: str | None#

Optional string to store the traceback of a possible error during execution.

model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

serialize_custom_experiment_analyses(value, _info)#

Serialize custom experiment analyses.

Parameters:
  • value (Any)

  • _info (FieldSerializationInfo)

Return type:

dict[str, str]

classmethod validate_custom_experiment_analyses(value)#

Cast str fqdn to type.

Inheritance

Inheritance diagram of exa.core.sequence.interface.SequenceContextData