From e7b7a7f274a00afc504a8a928965b1aaac2fcbaf Mon Sep 17 00:00:00 2001 From: Daniel Caballero Date: Wed, 7 May 2025 13:39:11 -0400 Subject: [PATCH 1/2] Marked IntegratePeaksCWSD as deprecated --- .../MDAlgorithms/inc/MantidMDAlgorithms/IntegratePeaksCWSD.h | 3 ++- Framework/MDAlgorithms/src/IntegratePeaksCWSD.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/IntegratePeaksCWSD.h b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/IntegratePeaksCWSD.h index a86957cdeac1..47c4e7606248 100644 --- a/Framework/MDAlgorithms/inc/MantidMDAlgorithms/IntegratePeaksCWSD.h +++ b/Framework/MDAlgorithms/inc/MantidMDAlgorithms/IntegratePeaksCWSD.h @@ -8,6 +8,7 @@ #include "MantidAPI/Algorithm.h" #include "MantidAPI/CompositeFunction.h" +#include "MantidAPI/DeprecatedAlgorithm.h" #include "MantidAPI/IMDEventWorkspace_fwd.h" #include "MantidDataObjects/MDEventWorkspace.h" #include "MantidDataObjects/MaskWorkspace.h" @@ -22,7 +23,7 @@ namespace MDAlgorithms { * @author Janik Zikovsky * @date 2011-04-13 18:11:53.496539 */ -class MANTID_MDALGORITHMS_DLL IntegratePeaksCWSD final : public API::Algorithm { +class MANTID_MDALGORITHMS_DLL IntegratePeaksCWSD final : public API::Algorithm, public API::DeprecatedAlgorithm { public: IntegratePeaksCWSD(); diff --git a/Framework/MDAlgorithms/src/IntegratePeaksCWSD.cpp b/Framework/MDAlgorithms/src/IntegratePeaksCWSD.cpp index 9dc7ef573211..4569a09e1651 100644 --- a/Framework/MDAlgorithms/src/IntegratePeaksCWSD.cpp +++ b/Framework/MDAlgorithms/src/IntegratePeaksCWSD.cpp @@ -32,7 +32,9 @@ const signal_t THRESHOLD_SIGNAL = 0; */ IntegratePeaksCWSD::IntegratePeaksCWSD() : m_haveMultipleRun(false), m_useSinglePeakCenterFmUser(false), m_peakRadius(), m_doMergePeak(false), - m_normalizeByMonitor(false), m_normalizeByTime(false), m_scaleFactor(0), m_haveInputPeakWS(false) {} + m_normalizeByMonitor(false), m_normalizeByTime(false), m_scaleFactor(0), m_haveInputPeakWS(false) { + deprecatedDate("2025-05-07"); +} /** Initialize the algorithm's properties. */ From 1d9f8f13d191ef2594788039e4fa3e321efea272 Mon Sep 17 00:00:00 2001 From: Daniel Caballero Date: Wed, 7 May 2025 13:46:52 -0400 Subject: [PATCH 2/2] Added release notes --- .../release/v6.13.0/Framework/Algorithms/Deprecated/39297.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/source/release/v6.13.0/Framework/Algorithms/Deprecated/39297.rst diff --git a/docs/source/release/v6.13.0/Framework/Algorithms/Deprecated/39297.rst b/docs/source/release/v6.13.0/Framework/Algorithms/Deprecated/39297.rst new file mode 100644 index 000000000000..0ca067f04be3 --- /dev/null +++ b/docs/source/release/v6.13.0/Framework/Algorithms/Deprecated/39297.rst @@ -0,0 +1 @@ +- :ref:`IntegratePeaksCWSD ` has been deprecated. There is no replacement.