Skip to content
Snippets Groups Projects
Commit f07fd786 authored by Doucet, Mathieu's avatar Doucet, Mathieu
Browse files

Re #11488 make sure scaling factor file is OK

parent 2fd2dc69
No related branches found
No related tags found
No related merge requests found
......@@ -547,6 +547,14 @@ class LiquidsReflectometryReduction(PythonAlgorithm):
if len(key_value)==2:
keys.append(key_value[0].strip())
# Skip empty lines
if len(keys)==0:
continue
# Complain if the format is non-standard
elif len(keys)<10:
logger.error("Bad scaling factor entry\n %s" % line)
continue
# Sanity check
if keys[0] != 'IncidentMedium' and keys[1] != 'LambdaRequested' \
and keys[2] != 'S1H':
......
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