- mantidimaging.core.io.utility.find_first_file_that_is_possibly_a_sample(file_path: str) Optional[str] [source]¶
- mantidimaging.core.io.utility.find_projection_closest_to_180(projections: numpy.ndarray, projection_angles: numpy.ndarray) Tuple[numpy.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.