mantidimaging.gui.windows.main.model module#
- class mantidimaging.gui.windows.main.model.MainWindowModel[source]#
Bases:
object
- add_180_deg_to_dataset(dataset_id: UUID, _180_deg_file: str) ImageStack [source]#
Loads the 180 projection and adds this to a given Dataset ID. :param dataset_id: The ID of the Dataset. :param _180_deg_file: The location of the 180 projection. :return: The loaded 180 ImageStack object.
- add_projection_angles_to_sample(images_id: UUID, proj_angles: ProjectionAngles) None [source]#
- add_shutter_counts_to_sample(images_id: UUID, shutter_counts_file: Path) None [source]#
Adds the shutter counts file to the sample associated with the given images ID. :param images_id (uuid.UUID): The ID of the images. :param shutter_counts_file (Path): The path to the shutter counts file. :raises RuntimeError: If the images with the given ID cannot be found. :returns None
- do_images_saving(images_id: uuid.UUID, output_dir: str, name_prefix: str, image_format: str, overwrite: bool, pixel_depth: str, progress: Progress) bool [source]#
- do_load_dataset(parameters: LoadingParameters, progress: Progress) StrictDataset [source]#
- get_existing_180_id(dataset_id: UUID) UUID | None [source]#
Gets the ID of the 180 projection object in a Dataset. :param dataset_id: The Dataset ID. :return: The 180 ID if found, None otherwise.
- get_images_by_uuid(images_uuid: UUID) ImageStack | None [source]#
- get_parent_dataset(member_id: UUID) UUID [source]#
Takes the ID of an image stack and returns the ID of its parent dataset. :param member_id: The ID of the image stack. :return: The ID of the parent dataset if found.
- property images: list[ImageStack]#
- load_image_stack(file_path: str, progress: Progress) ImageStack [source]#
- load_images_into_mixed_dataset(file_path: str, progress: Progress) MixedDataset [source]#
- property proj180s: list[ImageStack]#