Sweep#

Module: exa.common.data.parameter

class Sweep(*, parameter, data)#

Bases: BaseModel

Base immutable class for sweeps.

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].

parameter

The Sweep represents changing the values of this Parameter.

data

List of values for parameter

Methods

validate_parameter

Parameters:
  • parameter (Parameter)

  • data (Annotated[list[Any] | ndarray, PlainValidator(func=~exa.common.control.sweep.sweep_values.validate_sweep_values, json_schema_input_type=~typing.Any), PlainSerializer(func=~exa.common.control.sweep.sweep_values.serialize_sweep_values, return_type=PydanticUndefined, when_used=always), WithJsonSchema(json_schema={'type': 'any'}, mode=None)])

model_config = {'extra': 'ignore', 'frozen': True, 'ser_json_inf_nan': 'constants', 'validate_assignment': True, 'validate_default': False}#

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

parameter: Parameter#

The Sweep represents changing the values of this Parameter.

data: SweepValues#

List of values for parameter

Inheritance

Inheritance diagram of exa.common.data.parameter.Sweep