From 943bb7be4b65f103bd6e8d032e556ae390af3d99 Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Fri, 26 Sep 2014 16:41:00 +0100 Subject: [PATCH] Fix numpy issue with IntArrayProperty Refs #10215 --- .../algorithms/WorkflowAlgorithms/MSGDiffractionReduction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/MSGDiffractionReduction.py b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/MSGDiffractionReduction.py index bfc49132b500..f85252698ceb 100644 --- a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/MSGDiffractionReduction.py +++ b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/MSGDiffractionReduction.py @@ -31,7 +31,7 @@ def PyInit(self): doc='Range of detectors to use.') self.declareProperty(name='RebinParam', defaultValue='', - doc='Rebin parameters') + doc='Rebin parameters.') self.declareProperty(WorkspaceGroupProperty('OutputWorkspaceGroup', '', direction=Direction.Output, optional=PropertyMode.Optional), @@ -88,7 +88,7 @@ def PyExec(self): reducer = MSGDiffractionReducer() reducer.set_instrument_name(instrument_name) - reducer.set_detector_range(detector_range[0] - 1, detector_range[1] - 1) + reducer.set_detector_range(int(detector_range[0] - 1), int(detector_range[1] - 1)) reducer.set_parameter_file(ipf_filename) reducer.set_sum_files(sum_files) reducer.set_save_formats(save_formats)