Skip to content

Add data path selection utils

payno requested to merge add_data_path_selection_utils into main

details

This PR add utils to be used with hdf5 data path selection (like the future HDF5 data selection (!336 (closed) ) and the HDF5 scan concatenation (!335 (merged) ))

concept

When using HDF5, the user might need to define the locations of the detector dataset(s) and of the positioners group(s). With these utils, they can easily define those path from patterns.

Patterns can contain the following keywords:

  • {detector}: if provided then a detector dataset (or group) will be searched from the upstream path.
    • constraint: must be at the end of the pattern
    • use cases: scan concatenation and HDF5 scan selection
  • {scan}: 'wildcard' for first entry of a HDF5 file.
    • constraint: must be at the beginning of the pattern
  • {first_scan}: pick the first entry of a HDF5 file
    • constraint: must be at the beginning of the pattern
    • note: was not sure if this is a good idea / helping the user. Anyway this is free to have. If unused we will remove it.
  • {last_scan}: pick the last entry of a HDF5 file
    • constraint: must be at the beginning of the pattern
    • note: was not sure if this is a good idea / helping the user. Anyway this is free to have. If unused we will remove it.

gui

example of the gui (note: this is an earlier prototype where the first entry was not filtered)

vokoscreenNG-2024-07-03_17-03-42

Edited by payno

Merge request reports