Skip to content
Snippets Groups Projects
Commit 2277d3dd authored by Jose Borreguero's avatar Jose Borreguero
Browse files

Refs #23173 correct valid values for qbins

parent 8225084a
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ class DPDFreduction(api.PythonAlgorithm):
# check momentum transfer bins
qbins = self.getProperty('MomentumTransferBins').value
print(type(qbins))
if len(qbins) not in (0, 3):
if len(qbins) not in (0, 1, 3):
issues['MomentumTransferBins'] =\
'Momentum transfer bins is a list of zero (empty list), one, or three values'
return issues
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment