mantidimaging.core.io.loader.loader module

class mantidimaging.core.io.loader.loader.FileInformation(filenames: 'List[str]', shape: 'Tuple[int, int, int]', sinograms: 'bool')[source]

Bases: object

filenames: List[str]
shape: Tuple[int, int, int]
sinograms: bool
mantidimaging.core.io.loader.loader.create_loading_parameters_for_file_path(file_path: str) Optional[mantidimaging.core.utility.data_containers.LoadingParameters][source]
mantidimaging.core.io.loader.loader.get_loader(in_format: str) Callable[[str], numpy.ndarray][source]
mantidimaging.core.io.loader.loader.load(input_path: Optional[str] = None, in_prefix: str = '', in_format: str = 'tif', dtype: npt.DTypeLike = <class 'numpy.float32'>, file_names: Optional[List[str]] = None, indices: Optional[Union[List[int], Indices]] = None, progress: Optional[Progress] = None) ImageStack[source]

Loads a stack, including sample, white and dark images.

Parameters
  • input_path – Path for the input data folder

  • in_prefix – Optional: Prefix for loaded files

  • in_format – Default:’tiff’, format for the input images

  • dtype – Default:np.float32, data type for the input images

  • file_names – Use provided file names for loading

  • indices – Specify which indices are loaded from the found files. This DOES NOT check for the number in the image filename, but removes all indices from the filenames list that are not selected

  • progress – The progress reporting instance

Returns

an ImageStack

mantidimaging.core.io.loader.loader.load_log(log_file: pathlib.Path) mantidimaging.core.utility.imat_log_file_parser.IMATLogFile[source]
mantidimaging.core.io.loader.loader.load_p(parameters: ImageParameters, dtype: npt.DTypeLike, progress: Progress) ImageStack[source]
mantidimaging.core.io.loader.loader.load_stack(file_path: str, progress: Optional[Progress] = None) ImageStack[source]
mantidimaging.core.io.loader.loader.read_in_file_information(input_path: str, in_prefix: str = '', in_format: str = 'tif', data_dtype: npt.DTypeLike = <class 'numpy.float32'>) FileInformation[source]
mantidimaging.core.io.loader.loader.supported_formats() List[str][source]