Assume scan_motor to be "om" if it's not present

This commit is contained in:
usov_i 2022-05-06 15:29:45 +02:00
parent 1d43c86cff
commit 7075e0f42b

View File

@ -159,6 +159,9 @@ def parse_1D(fileobj, data_type):
for param, (param_name, param_type) in zip(next_line.split(), ccl_second_line):
scan[param_name] = param_type(param)
if "scan_motor" not in scan:
scan["scan_motor"] = "om"
if scan["scan_motor"] != "om":
raise Exception("Unsupported variable name in ccl file.")