From 0cb5c1ae56f9e4b14a98a248dc680ce9e38b06d2 Mon Sep 17 00:00:00 2001 From: Andrei Savici <saviciat@ornl.gov> Date: Thu, 1 Dec 2016 17:22:14 -0500 Subject: [PATCH] Re #18136. Add correct display normalization for MDNorm... outputs --- Framework/MDAlgorithms/src/MDNormDirectSC.cpp | 2 ++ Framework/MDAlgorithms/src/MDNormSCD.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Framework/MDAlgorithms/src/MDNormDirectSC.cpp b/Framework/MDAlgorithms/src/MDNormDirectSC.cpp index af8c4b43df7..ae3bb1f6eaa 100644 --- a/Framework/MDAlgorithms/src/MDNormDirectSC.cpp +++ b/Framework/MDAlgorithms/src/MDNormDirectSC.cpp @@ -118,8 +118,10 @@ void MDNormDirectSC::exec() { cacheInputs(); auto outputWS = binInputWS(); convention = Kernel::ConfigService::Instance().getString("Q.convention"); + outputWS->setDisplayNormalization(Mantid::API::NoNormalization); setProperty<Workspace_sptr>("OutputWorkspace", outputWS); createNormalizationWS(*outputWS); + m_normWS->setDisplayNormalization(Mantid::API::NoNormalization); setProperty("OutputNormalizationWorkspace", m_normWS); // Check for other dimensions if we could measure anything in the original diff --git a/Framework/MDAlgorithms/src/MDNormSCD.cpp b/Framework/MDAlgorithms/src/MDNormSCD.cpp index 99efceaf9c6..7bee2c7e173 100644 --- a/Framework/MDAlgorithms/src/MDNormSCD.cpp +++ b/Framework/MDAlgorithms/src/MDNormSCD.cpp @@ -113,8 +113,10 @@ void MDNormSCD::exec() { cacheInputs(); auto outputWS = binInputWS(); convention = Kernel::ConfigService::Instance().getString("Q.convention"); + outputWS->setDisplayNormalization(Mantid::API::NoNormalization); setProperty<Workspace_sptr>("OutputWorkspace", outputWS); createNormalizationWS(*outputWS); + m_normWS->setDisplayNormalization(Mantid::API::NoNormalization); setProperty("OutputNormalizationWorkspace", m_normWS); // Check for other dimensions if we could measure anything in the original -- GitLab