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:
BaseModelData 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
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Sequence that used this context.
Unique ID of the execution.
List of run IDs and analysis args of individual executed nodes.
Tags used to tag any observations during execution and the resulting final analysis.
Custom analyze functions to call instead of the normal experiment analysis.
Optional string to store the summary of a possible error during execution.
Optional string to store the traceback of a possible error during execution.
Methods
Serialize custom experiment analyses.
Cast str fqdn to type.
- Parameters:
sequence (SequenceData)
sequence_run_id (UUID)
executed_nodes (list[NodeExecution])
custom_experiment_analyses (dict[str, Callable[[...], AnalyzeResult]])
error (str | None)
error_traceback (str | None)
- sequence: SequenceData#
Sequence that used this context.
- 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_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.
- classmethod validate_custom_experiment_analyses(value)#
Cast str fqdn to type.
Inheritance
