diff --git a/pyzebra/ccl_io.py b/pyzebra/ccl_io.py index bc0e2b53d8f66234465f44dbbee6593e296fdd15..e021df40ce0af8031965bb923d2f1f32c7a5b64b 100644 --- a/pyzebra/ccl_io.py +++ b/pyzebra/ccl_io.py @@ -235,7 +235,7 @@ def parse_1D(fileobj, data_type, log=logger): scan["export"] = True match = re.search("Scanning Variables: (.*), Steps: (.*)", next(fileobj)) - motors = [motor.lower() for motor in match.group(1).split(", ")] + motors = [motor.strip().lower() for motor in match.group(1).split(",")] # Steps can be separated by " " or ", " steps = [float(step.strip(",")) for step in match.group(2).split()]