tof.utils#

Functions

energy_to_speed(x[, unit])

Convert neutron energies to speeds.

energy_to_wavelength(x[, unit])

Convert neutron energies to wavelengths.

extract_component_group(components, kind)

Extract a group of components of a given kind from a dictionary of components.

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_from_dict(data[, dim])

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

var_to_dict(var)

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

wavelength_to_energy(x[, unit])

Convert neutron wavelengths to energies.

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).