From b087def981f65a7e390f85d36627baacf3e307f8 Mon Sep 17 00:00:00 2001
From: Mathieu Doucet <matd10@yahoo.com>
Date: Fri, 8 Dec 2017 08:59:01 -0500
Subject: [PATCH] Get reduce from functools

---
 .../plugins/algorithms/MagnetismReflectometryReduction.py      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Framework/PythonInterface/plugins/algorithms/MagnetismReflectometryReduction.py b/Framework/PythonInterface/plugins/algorithms/MagnetismReflectometryReduction.py
index b684b5a7e96..1a0ad02c73b 100644
--- a/Framework/PythonInterface/plugins/algorithms/MagnetismReflectometryReduction.py
+++ b/Framework/PythonInterface/plugins/algorithms/MagnetismReflectometryReduction.py
@@ -5,6 +5,7 @@
 from __future__ import (absolute_import, division, print_function)
 import math
 import numpy as np
+import functools
 from mantid.api import *
 from mantid.simpleapi import *
 from mantid.kernel import *
@@ -195,7 +196,7 @@ class MagnetismReflectometryReduction(PythonAlgorithm):
                     # Allow for a file name or file path as input
                     data_file = FileFinder.findRuns(item)[0]
                 file_list.append(data_file)
-            runs = reduce((lambda x, y: '%s+%s' % (x, y)), file_list)
+            runs = functools.reduce((lambda x, y: '%s+%s' % (x, y)), file_list)
             entry_name = self.getProperty("EntryName").value
             ws_event_data = LoadEventNexus(Filename=runs, NXentryName=entry_name,
                                            OutputWorkspace="%s_%s" % (INSTRUMENT_NAME, dataRunNumbers[0]))
-- 
GitLab