dodal.devices.util.lookup_tables_apple2.EnergyCoverageEntry#

class dodal.devices.util.lookup_tables_apple2.EnergyCoverageEntry[source]#

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.

Parameters:

data (Any)

Methods

serialize_poly(value)

Allow np.poly1d to work when serializing.

validate_and_convert_poly(value)

If reading from serialized data, it will be using a list.

Attributes

model_config

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

low

high

poly

classmethod validate_and_convert_poly(value)[source]#

If reading from serialized data, it will be using a list. Convert to np.poly1d

serialize_poly(value: poly1d) list[source]#

Allow np.poly1d to work when serializing.

Parameters:

value (poly1d)

Return type:

list