Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
1fc7158b
Commit
1fc7158b
authored
Aug 03, 2021
by
Gemma Guest
Browse files
Minor tidying to move function to better position
Re #32125
parent
d627d12d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/ReflectometryISISPreprocess.py
View file @
1fc7158b
...
...
@@ -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."""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment