tomoscan.esrf.scan.utils.get_series_slice#
- tomoscan.esrf.scan.utils.get_series_slice(image_key_values, image_key_type, series_index)#
return the DataUrl corresponding to the to the serie at series_index for the type of image_key_type.
Examples: with the following image_key_values: (
ImageKey.DARK_FIELD ImageKey.DARK_FIELD ImageKey.FLAT_FIELD ImageKey.FLAT_FIELD ImageKey.FLAT_FIELD ImageKey.PROJECTION ImageKey.PROJECTION ImageKey.PROJECTION ImageKey.PROJECTION
)
get_serie_url(image_key_values, ImageKey.FLAT_FIELD, serie_index=0) == slice(2, 5) get_serie_url(image_key_values, ImageKey.FLAT_FIELD, serie_index=1) == None get_serie_url(image_key_values, ImageKey.FLAT_FIELD, serie_index=-1) == slice(2, 5)