mantidimaging.core.io.utility module#

mantidimaging.core.io.utility.find_first_file_that_is_possibly_a_sample(file_path: str) str | None[source]#
mantidimaging.core.io.utility.find_projection_closest_to_180(projections: ndarray, projection_angles: ndarray) tuple[ndarray, float][source]#

Finds the projection closest to 180 and returns it with the difference. :param projections: The array of projection images. :param projection_angles: The array of projection angles. :return: The 180 projection/the closest non-180 projection and the difference between its angle and 180.