Scan/detector selection
User input
-
bliss_filenames
:["/path/to/file1.h5", "/path/to/file2.h5"]
-
scan_ranges
:[(0,10), (2,6)]
-
exclude_scans
:[[], [3]]
-
spectrum_template
:{scan}/measurement/{detector}
-
livetime_template
:{scan}/measurement/{detector}_livetime
-
detectors
:["fx2_det0", "fx2_det1", "fx2_det2"]
Parsing to list of dataset URI's:
for filenames, (start,stop), excluded in zip(bliss_filenames, scan_ranges, exclude_scans):
for scan in range(start, stop):
if scan not in excluded:
uris[detector][scan].append(spectrum_template.format(scan=..., detector=...))
Edited by Wout De Nolf