From 8f905170e35d10f26b44f7ad21d83de8639a65a1 Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Wed, 1 Apr 2015 11:24:06 +0100 Subject: [PATCH] Do not output temperature workspace when no temperatures Refs #11464 --- .../algorithms/WorkflowAlgorithms/ElasticWindowMultiple.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/ElasticWindowMultiple.py b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/ElasticWindowMultiple.py index 0e2f74243792..537d76c3e484 100644 --- a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/ElasticWindowMultiple.py +++ b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/ElasticWindowMultiple.py @@ -150,6 +150,9 @@ def PyExec(self): temp = self._get_temperature(input_ws) if temp is not None: temperatures.append(temp) + else: + # No need to output a tmperature workspace if there are no temperatures + self._elt_workspace = '' logger.information('Creating Q and Q^2 workspaces')