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.selfis explicitly positional-only to allowselfas 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_configConfiguration for the model, should be a dictionary conforming to [
ConfigDict][pydantic.config.ConfigDict].lowhighpoly