From 5e0954d0366ce63bc3549cbc913eb7870a98d91f Mon Sep 17 00:00:00 2001
From: Simon Heybrock <simon.heybrock@esss.se>
Date: Tue, 23 Jan 2018 15:40:19 +0100
Subject: [PATCH] Re #21631. MPI support for SNSPowderReduction.

---
 .../PythonInterface/plugins/algorithms/SNSPowderReduction.py  | 4 ++--
 dev-docs/source/AlgorithmMPISupport.rst                       | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Framework/PythonInterface/plugins/algorithms/SNSPowderReduction.py b/Framework/PythonInterface/plugins/algorithms/SNSPowderReduction.py
index 1f11dbcd452..042456c844e 100644
--- a/Framework/PythonInterface/plugins/algorithms/SNSPowderReduction.py
+++ b/Framework/PythonInterface/plugins/algorithms/SNSPowderReduction.py
@@ -4,7 +4,7 @@ from __future__ import (absolute_import, division, print_function)
 import os
 
 import mantid.simpleapi as api
-from mantid.api import mtd, AlgorithmFactory, AnalysisDataService, DataProcessorAlgorithm, \
+from mantid.api import mtd, AlgorithmFactory, AnalysisDataService, DistributedDataProcessorAlgorithm, \
     FileAction, FileProperty, ITableWorkspaceProperty, MultipleFileProperty, PropertyMode, WorkspaceProperty, \
     ITableWorkspace, MatrixWorkspace
 from mantid.kernel import ConfigService, Direction, FloatArrayProperty, \
@@ -106,7 +106,7 @@ def getBasename(filename):
 #pylint: disable=too-many-instance-attributes
 
 
-class SNSPowderReduction(DataProcessorAlgorithm):
+class SNSPowderReduction(DistributedDataProcessorAlgorithm):
     COMPRESS_TOL_TOF = .01
     _resampleX = None
     _binning = None
diff --git a/dev-docs/source/AlgorithmMPISupport.rst b/dev-docs/source/AlgorithmMPISupport.rst
index cafd2609ab1..4842859046f 100644
--- a/dev-docs/source/AlgorithmMPISupport.rst
+++ b/dev-docs/source/AlgorithmMPISupport.rst
@@ -492,7 +492,7 @@ Supported Algorithms
 Algorithm                              Supported modes         Comments
 ====================================== ======================= ========
 AlignAndFocusPowder                    all
-AlignAndFocusPowderFromFiles           all
+AlignAndFocusPowderFromFiles           Distributed
 AlignDetectors                         all                     with ``StorageMode::Distributed`` this touches only detectors that have spectra on this rank, i.e., the modified instrument is not in an identical state on all ranks
 BinaryOperation                        all                     not supported if ``AllowDifferentNumberSpectra`` is enabled
 CalculateChiSquared                    MasterOnly, Identical   see ``IFittingAlgorithm``
@@ -621,6 +621,7 @@ SaveNexus                              MasterOnly
 SaveNexusProcessed                     MasterOnly
 Scale                                  all
 SignalOverError                        all                     see ``UnaryOperation``
+SNSPowderReduction                     Distributed
 SortEvents                             all
 SortTableWorkspace                     MasterOnly, Identical
 SumSpectra                             MasterOnly, Identical
-- 
GitLab