ibex_bluesky_core.devices.dae.dae_spectra

ophyd-async devices and utilities for a single DAE spectra.

Members

DaeSpectra

Subdevice for a single DAE spectra.

class ibex_bluesky_core.devices.dae.dae_spectra.DaeSpectra(dae_prefix: str, *, spectra: int, period: int, name: str = '')[source]

Bases: StandardReadable

Subdevice for a single DAE spectra.

Set up signals for a single DAE spectra.

async read_counts() ndarray[Any, dtype[float32]][source]

Read a correctly-sized array of counts.

async read_counts_per_time() ndarray[Any, dtype[float32]][source]

Read a correctly-sized array of counts divided by bin width.

async read_spectrum_dataarray() DataArray[source]

Get a scipp DataArray containing the current data from this spectrum.

Variances are set to the counts - i.e. the standard deviation is sqrt(N), which is typical for counts data.

Data is returned along dimension “tof”, which has bin-edge coordinates and units set from the units of the underlying PVs.

async read_tof() ndarray[Any, dtype[float32]][source]

Read a correctly-sized time-of-flight (x) array representing bin centres.

async read_tof_edges() ndarray[Any, dtype[float32]][source]

Read a correctly-sized time-of-flight (x) array representing bin edges.