ewoksdata.data.bliss.iter_bliss_scan_data#
- ewoksdata.data.bliss.iter_bliss_scan_data(filename, scan_nr, subscan=None, scan_key=None, lima_names=None, counter_names=None, retry_timeout=None, retry_period=None, buffer_in_memory=True, **hdf5_options)[source]#
Yield the data of a Bliss scan either from an HDF5 file or from memory (Redis or device servers).
- Parameters:
filename (
str) – Path to the HDF5 / Nexus file (ignored when scan_key is supplied).scan_nr (
Integral) – Scan number inside the file.subscan (
Optional[Integral]) – Sub-scan number (e.g.10.2->scan_nr=10andsubscan=2).scan_key (
Optional[str]) – Identifier of a scan for blissdata. Iterate scan data from blissdata-cache.lima_names (
Optional[List[str]]) – List of LIMA detector names.counter_names (
Optional[List[str]]) – List of non-LIMA counter names.retry_timeout (
Optional[float]) – Timeout for the retry mechanism.retry_period (
Optional[float]) – Interval between retries.buffer_in_memory (
bool) – Blissdata buffering in memory. Only applies when scan_key is provided. Use only when you have enough memory or the data processing can keep up with the scan.**hdf5_options –
Additional options forwarded to
blissdata.h5api.dynamic_hdf5.File.hdf5_options (
Any)
- Yields:
Mapping
detector_name -> valuefor each scan point.- Return type:
Iterator[Dict[str,Any]]