diff --git a/docs/release_notes/next/fix-2222-Monitor-normalisation-RuntimeError-No-logfile-stack b/docs/release_notes/next/fix-2222-Monitor-normalisation-RuntimeError-No-logfile-stack new file mode 100644 index 00000000000..a073ccb04e1 --- /dev/null +++ b/docs/release_notes/next/fix-2222-Monitor-normalisation-RuntimeError-No-logfile-stack @@ -0,0 +1 @@ +2222: Monitor normalisation: RuntimeError: No logfile available for this stack. \ No newline at end of file diff --git a/mantidimaging/core/operations/monitor_normalisation/monitor_normalisation.py b/mantidimaging/core/operations/monitor_normalisation/monitor_normalisation.py index ec0c4ec1ae1..ff460c73964 100644 --- a/mantidimaging/core/operations/monitor_normalisation/monitor_normalisation.py +++ b/mantidimaging/core/operations/monitor_normalisation/monitor_normalisation.py @@ -37,6 +37,11 @@ def filter_func(images: ImageStack, progress=None) -> ImageStack: """ :return: The ImageStack object which has been normalised. """ + if '180deg' in images.name.lower(): + if progress: + progress("Skipping normalization for the 180-degree stack, no logfile.") + return images + if images.num_projections == 1: # we can't really compute the preview as the image stack copy # passed in doesn't have the logfile in it