Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
2008fa85
Commit
2008fa85
authored
Jan 19, 2021
by
Gagik Vardanyan
Browse files
change the declaration to use keyword args
parent
b87924b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/SANSILLIntegration.py
View file @
2008fa85
...
...
@@ -163,8 +163,8 @@ class SANSILLIntegration(PythonAlgorithm):
lambda_range_validator
=
CompositeValidator
()
lambda_range_validator
.
add
(
FloatArrayOrderedPairsValidator
())
lambda_range_validator
.
add
(
FloatArrayLengthValidator
(
2
))
self
.
declareProperty
(
FloatArrayProperty
(
'WavelengthRange'
,
[
1.
,
10.
],
lambda_range_validator
),
'Wavelength range [Angstrom] to be used in integration (TOF only).'
)
self
.
declareProperty
(
FloatArrayProperty
(
name
=
'WavelengthRange'
,
defaultValue
=
[
1.
,
10.
],
validator
=
lambda_range_validator
),
doc
=
'Wavelength range [Angstrom] to be used in integration (TOF only).'
)
def
PyExec
(
self
):
self
.
_input_ws
=
self
.
getPropertyValue
(
'InputWorkspace'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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