Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 45b091f90b | |||
| 20fc969d60 |
@@ -6,4 +6,4 @@ from pyzebra.utils import *
|
|||||||
from pyzebra.xtal import *
|
from pyzebra.xtal import *
|
||||||
from pyzebra.sxtal_refgen import *
|
from pyzebra.sxtal_refgen import *
|
||||||
|
|
||||||
__version__ = "0.7.1"
|
__version__ = "0.7.2"
|
||||||
|
|||||||
@@ -204,7 +204,8 @@ def parse_1D(fileobj, data_type):
|
|||||||
|
|
||||||
match = re.search("Scanning Variables: (.*), Steps: (.*)", next(fileobj))
|
match = re.search("Scanning Variables: (.*), Steps: (.*)", next(fileobj))
|
||||||
motors = [motor.lower() for motor in match.group(1).split(", ")]
|
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))
|
match = re.search("(.*) Points, Mode: (.*), Preset (.*)", next(fileobj))
|
||||||
if match.group(2) != "Monitor":
|
if match.group(2) != "Monitor":
|
||||||
|
|||||||
Reference in New Issue
Block a user