Skip to content

Commit

Permalink
FLASH PR - Spectrum Viewer: Export ShutterCount corrected all_norm if…
Browse files Browse the repository at this point in the history
… ShutterCount correction applied (#2244)
  • Loading branch information
samtygier-stfc authored Jul 1, 2024
2 parents 953e243 + 5161bd5 commit 1cd9d21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mantidimaging/gui/windows/spectrum_viewer/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1cd9d21

Please sign in to comment.