From b7ca5249172df95b7d1ab3ab68c5eec4ed024374 Mon Sep 17 00:00:00 2001 From: Harry Jeffery <henry.jeffery@stfc.ac.uk> Date: Wed, 18 Feb 2015 16:08:29 +0000 Subject: [PATCH] Refs #11020 Fix typecast inside CutMD --- .../plugins/algorithms/WorkflowAlgorithms/CutMD.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/CutMD.py b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/CutMD.py index c2d3e9918d2..ac850a7d74d 100644 --- a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/CutMD.py +++ b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/CutMD.py @@ -128,10 +128,10 @@ class CutMD(DataProcessorAlgorithm): if not isinstance(projection_table, ITableWorkspace): I = np.identity(3) return (I[0, :], I[1, :], I[2, :]) - u = np.array(str(projection_table.cell("value", 0)).split(",")) - v = np.array(str(projection_table.cell("value", 1)).split(",")) + u = np.array(map(float,str(projection_table.cell("value", 0)).split(","))) + v = np.array(map(float,str(projection_table.cell("value", 1)).split(","))) if projection_table.rowCount() >= 3: - w = np.array(str(projection_table.cell("value", 2)).split(",")) + w = np.array(map(float,str(projection_table.cell("value", 2)).split(","))) else: w = np.cross(v,u) -- GitLab