tomoscan.framereducer.utils.read_reduced_frames#

tomoscan.framereducer.utils.read_reduced_frames(url, read_as_url, res_data, res_metadata)#

Read one reduced frame and append frame data to ‘res_data’ and frame metadata to ‘res_metadata’. url must contains: * scheme: “fabio”, “hdf5” or “silx” * file_path: path to the file containing the reduced frame * data_path: for hdf5/silx, path to the dataset or group containing the reduced frame * data_slice: for fabio, index of the reduced frame in the file; for hdf5/silx, index of the reduced frame in the dataset or group

Parameters:
  • url (DataUrl) – url of the reduced frame to read.

  • read_as_url (bool) – if True, the frame data will be stored as a DataUrl instead of being read.

  • res_data – dict where the frame data will be stored. The key is the frame index and the value is the frame data or a DataUrl if read_as_url is True.

  • res_metadata – ReducedFramesInfos where the frame metadata will be stored. Will only be take into account if scheme is “fabio”.

Return type:

None