dodal.devices.util.lookup_tables#

All the public methods in this module return a lookup table of some kind that converts the source value s to a target value t for different values of s.

Functions

energy_distance_table(lookup_table_path)

Returns a numpy formatted lookup table for required positions of an ID gap to provide emission at a given beam energy.

linear_interpolation_lut(filename)

Returns a callable that converts values by linear interpolation of lookup table values.

async dodal.devices.util.lookup_tables.energy_distance_table(lookup_table_path: str) ndarray[source]#

Returns a numpy formatted lookup table for required positions of an ID gap to provide emission at a given beam energy.

Parameters:

lookup_table_path (str) – Path to lookup table

Returns:

Lookup table

Return type:

ndarray

dodal.devices.util.lookup_tables.linear_interpolation_lut(filename: str) Callable[[float], float][source]#

Returns a callable that converts values by linear interpolation of lookup table values.

If the value falls outside the lookup table then the closest value will be used.

Parameters:

filename (str)

Return type:

Callable[[float], float]