2 Commits
0.7.1 ... 0.7.2

Author SHA1 Message Date
45b091f90b Updating for version 0.7.2 2022-10-10 09:14:48 +02:00
20fc969d60 Allow comma separator between motor steps values 2022-09-30 15:55:32 +02:00
2 changed files with 3 additions and 2 deletions

View File

@ -6,4 +6,4 @@ from pyzebra.utils import *
from pyzebra.xtal import *
from pyzebra.sxtal_refgen import *
__version__ = "0.7.1"
__version__ = "0.7.2"

View File

@ -204,7 +204,8 @@ def parse_1D(fileobj, data_type):
match = re.search("Scanning Variables: (.*), Steps: (.*)", next(fileobj))
motors = [motor.lower() for motor in match.group(1).split(", ")]
steps = [float(step) for step in match.group(2).split()]
# Steps can be separated by " " or ", "
steps = [float(step.strip(",")) for step in match.group(2).split()]
match = re.search("(.*) Points, Mode: (.*), Preset (.*)", next(fileobj))
if match.group(2) != "Monitor":