Commit 2008fa85 authored by Gagik Vardanyan's avatar Gagik Vardanyan
Browse files

change the declaration to use keyword args

parent b87924b7
......@@ -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')
......
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