httomo.transform_loader_params.parse_preview#
- httomo.transform_loader_params.parse_preview(param_value: PreviewParam | None, data_shape: tuple[int, int, int]) PreviewConfig [source]#
Convert python dict representing preview information generated from parsing the pipeline file, into an internal preview configuration type that loaders can use.
- Parameters:
param_value (Optional[PreviewParam]) – The python dict parsed from the pipeline file that represents the preview configuration in the loader.
data_shape (tuple[int, int, int]) – The shape of the 3D input data.
- Returns:
Preview configuration that loaders can use.
- Return type: