diff --git a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/EnginXCalibrate.py b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/EnginXCalibrate.py index a925330b4978..b3b4cc373db1 100644 --- a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/EnginXCalibrate.py +++ b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/EnginXCalibrate.py @@ -48,7 +48,7 @@ def PyExec(self): def _focusRun(self): alg = self.createChildAlgorithm('EnginXFocus') - alg.setProperty('Run', self.getProperty('CalibrationRun').value) + alg.setProperty('InputWorkspace', self.getProperty('CalibrationRun').value) alg.setProperty('Bank', self.getProperty('Bank').value) detPos = self.getProperty('DetectorPositions').value diff --git a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/EnginXFocus.py b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/EnginXFocus.py index 196df4d578f9..7d4690f27f06 100644 --- a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/EnginXFocus.py +++ b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/EnginXFocus.py @@ -12,16 +12,18 @@ def summary(self): return "Focuses a run." def PyInit(self): - self.declareProperty(FileProperty("Run", "", FileAction.Load), + self.declareProperty(FileProperty("InputWorkspace", "", FileAction.Load), "Run to focus") - + + self.declareProperty(WorkspaceProperty("OutputWorkspace", "", Direction.Output), + "A workspace with focussed data") + self.declareProperty(ITableWorkspaceProperty("DetectorPositions", "", Direction.Input, PropertyMode.Optional), "Calibrated detector positions. If not specified, default ones are used.") self.declareProperty("Bank", 1, "Which bank to focus") - self.declareProperty(WorkspaceProperty("OutputWorkspace", "", Direction.Output), - "A workspace with focussed data") + def PyExec(self): # Load the run file @@ -52,7 +54,7 @@ def _loadRun(self): """ Loads the specified run """ alg = self.createChildAlgorithm('Load') - alg.setProperty('Filename', self.getProperty("Run").value) + alg.setProperty('Filename', self.getProperty("InputWorkspace").value) alg.execute() return alg.getProperty('OutputWorkspace').value diff --git a/Code/Mantid/docs/source/algorithms/EnginXFocus-v1.rst b/Code/Mantid/docs/source/algorithms/EnginXFocus-v1.rst index cde510af6abb..d6cd7c253fb0 100644 --- a/Code/Mantid/docs/source/algorithms/EnginXFocus-v1.rst +++ b/Code/Mantid/docs/source/algorithms/EnginXFocus-v1.rst @@ -22,7 +22,7 @@ and then converts them back to TOF. .. testcode:: ExSimple # Run the algorithm - ws = EnginXFocus(Run="ENGINX00213855.nxs", + ws = EnginXFocus(InputWorkspace="ENGINX00213855.nxs", Bank=1) # Should have one spectrum only