class FilenameGroup, log_file: Path | None = None, shutter_count_file: Path | None = None, indices: Indices | None = None)[source]#

Bases: object

Dataclass to hold info about an image stack that is to be loaded. Used with LoadingParameters

file_group: FilenameGroup#
indices: Indices | None = None#
log_file: Path | None = None#
shutter_count_file: Path | None = None#
class dict[~mantidimaging.core.utility.data_containers.FILE_TYPES,] = <factory>, pixel_size: int = 0, name: str = '', dtype: str = 'float32', sinograms: bool = False)[source]#

Bases: object

Dataclass to hold info about a dataset that is about to be loaded. Used to transfer information from ImageLoadDialog to the loading code.

dtype: str = 'float32'#
image_stacks: dict[FILE_TYPES, ImageParameters]#
name: str = ''#
pixel_size: int = 0#
sinograms: bool = False# Path) LoadingParameters | None[source]# str) Callable[[Path | str], ndarray][source]# FilenameGroup, dtype: npt.DTypeLike = <class 'numpy.float32'>, indices: list[int] | Indices | None = None, progress: Progress | None = None, log_file: Path | None = None, shutter_count_file: Path | None = None) ImageStack[source]#

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

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

  • filename_group – FilenameGroup to 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


an ImageStack Path) InstrumentLog[source]# Path) ShutterCount[source]# FilenameGroup, progress: Progress | None = None) ImageStack[source]# ImageParameters, progress: Progress | None = None, dtype: npt.DTypeLike = <class 'numpy.float32'>) ImageStack[source]# Path) tuple[int, int][source]#