ess.reduce.unwrap.types.LookupTable#

class ess.reduce.unwrap.types.LookupTable(array, pulse_period, pulse_stride, distance_resolution, time_resolution, choppers=None)[source]#

Lookup table giving wavelength as a function of distance and event_time_offset for each beamline component (detector, monitor).

__init__(array, pulse_period, pulse_stride, distance_resolution, time_resolution, choppers=None)#

Methods

__init__(array, pulse_period, pulse_stride, ...)

plot(*args, **kwargs)

Plot the data array of the lookup table.

save_hdf5(filename)

Save the lookup table to an HDF5 file.

Attributes

choppers

Chopper parameters used when generating the lookup table, if any.

array

The lookup table data array that maps (distance, event_time_offset) to wavelength.

pulse_period

Pulse period of the neutron source.

pulse_stride

Pulse stride used when generating the lookup table.

distance_resolution

Resolution of the distance coordinate in the lookup table.

time_resolution

Resolution of the event_time_offset coordinate in the lookup table.

array: DataArray#

The lookup table data array that maps (distance, event_time_offset) to wavelength.

choppers: DataGroup | None = None#

Chopper parameters used when generating the lookup table, if any. This is made optional so we can still support old lookup tables without chopper info.

distance_resolution: Variable#

Resolution of the distance coordinate in the lookup table.

plot(*args, **kwargs)[source]#

Plot the data array of the lookup table.

Return type:

Any

pulse_period: Variable#

Pulse period of the neutron source.

pulse_stride: int#

Pulse stride used when generating the lookup table.

save_hdf5(filename)[source]#

Save the lookup table to an HDF5 file.

Return type:

None

time_resolution: Variable#

Resolution of the event_time_offset coordinate in the lookup table.