Commit 1fc7158b authored by Gemma Guest's avatar Gemma Guest
Browse files

Minor tidying to move function to better position

Re #32125
parent d627d12d
......@@ -48,6 +48,10 @@ class ReflectometryISISPreprocess(DataProcessorAlgorithm):
doc='The preprocessed output workspace. If multiple input runs are specified '
'they will be summed into a single output workspace.')
def PyExec(self):
workspace = self._loadRun(self.getPropertyValue(self._RUNS))
self.setProperty(self._OUTPUT_WS, workspace)
@staticmethod
def _get_input_runs_validator():
mandatoryInputRuns = CompositeValidator()
......@@ -57,10 +61,6 @@ class ReflectometryISISPreprocess(DataProcessorAlgorithm):
mandatoryInputRuns.add(lenValidator)
return mandatoryInputRuns
def PyExec(self):
workspace = self._loadRun(self.getPropertyValue(self._RUNS))
self.setProperty(self._OUTPUT_WS, workspace)
def _loadRun(self, run: str) -> MatrixWorkspace:
"""Load a run as an event workspace if slicing is requested, or a histogram
workspace otherwise. Transmission runs are always loaded as histogram workspaces."""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment