From 5161bd554c2ba35f47e72ea20156be033b88a5a0 Mon Sep 17 00:00:00 2001 From: JackEAllen Date: Mon, 1 Jul 2024 13:27:17 +0100 Subject: [PATCH] If sample is normalised and shuttercount correction is applied, export corrected all_norm --- mantidimaging/gui/windows/spectrum_viewer/model.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mantidimaging/gui/windows/spectrum_viewer/model.py b/mantidimaging/gui/windows/spectrum_viewer/model.py index 7bc5d65778d..72233dab21b 100644 --- a/mantidimaging/gui/windows/spectrum_viewer/model.py +++ b/mantidimaging/gui/windows/spectrum_viewer/model.py @@ -357,7 +357,9 @@ def save_csv(self, path: Path, normalise: bool, normalise_with_shuttercount: boo if self._normalise_stack is None: raise RuntimeError("No normalisation stack selected") csv_output.add_column(roi_name + "_open", self.get_spectrum(roi_name, SpecType.OPEN), "Counts") - csv_output.add_column(roi_name + "_norm", self.get_spectrum(roi_name, SpecType.SAMPLE_NORMED), "Counts") + csv_output.add_column(roi_name + "_norm", + self.get_spectrum(roi_name, SpecType.SAMPLE_NORMED, normalise_with_shuttercount), + "Counts") with path.open("w") as outfile: csv_output.write(outfile)