tof.utils#

Functions

energy_to_speed(x[, unit])

Convert neutron energies to speeds.

one_mask(masks[, unit])

Combine multiple masks into a single mask.

speed_to_energy(x[, unit])

Convert neutron speeds to energies.

speed_to_wavelength(x[, unit])

Convert neutron speeds to wavelengths.

var_to_dict(var)

Convert a scipp Variable to a dictionary with 'value' and 'unit' keys.

wavelength_to_speed(x[, unit])

Convert neutron wavelengths to speeds.

Classes

Plot(ax, fig)

PulseProfile(frequency, birth_time, wavelength)

Parameters of a neutron pulse (typically from a neutron facility).