dodal.devices.insertion_device.lookup_table_models.LookupTable#

class dodal.devices.insertion_device.lookup_table_models.LookupTable[source]#

Specialised lookup table for insertion devices to relate the energy and polarisation values to Apple2 motor positions.

Parameters:

root (dict[Pol, EnergyCoverage] | None, default: None)

Methods

generate(pols, energy_coverage)

Generate a LookupTable containing multiple EnergyCoverage for provided polarisations.

get_poly(energy, pol)

Return the numpy.poly1d polynomial applicable for the given energy and polarisation.

Attributes

model_config

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

root

classmethod generate(pols: list[Pol], energy_coverage: list[EnergyCoverage]) Self[source]#

Generate a LookupTable containing multiple EnergyCoverage for provided polarisations.

Parameters:
Return type:

Self

get_poly(energy: float, pol: Pol) poly1d[source]#

Return the numpy.poly1d polynomial applicable for the given energy and polarisation.

Return type:

poly1d

Parameters:#

energy:

Energy value in the same units used to create the lookup table.

pol:

Polarisation mode (Pol enum).

param energy:

type energy:

float

param pol:

type pol:

Pol