From 19daa16de7160d8f87b67573b976e9d3405a4d31 Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Fri, 17 Jun 2022 10:28:13 +0200 Subject: [PATCH] Treat o2t as om --- pyzebra/ccl_io.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyzebra/ccl_io.py b/pyzebra/ccl_io.py index 770d938..37eee5d 100644 --- a/pyzebra/ccl_io.py +++ b/pyzebra/ccl_io.py @@ -167,6 +167,9 @@ def parse_1D(fileobj, data_type): if "scan_motor" not in scan: scan["scan_motor"] = "om" + if scan["scan_motor"] == "o2t": + scan["scan_motor"] = "om" + if scan["scan_motor"] != "om": raise Exception("Unsupported variable name in ccl file.")