Assume gamma = 2-theta for 'nb' zebra mode

This commit is contained in:
usov_i 2021-02-11 13:52:31 +01:00
parent 699c5f3d11
commit b418fb8300

View File

@ -174,6 +174,10 @@ def parse_1D(fileobj, data_type):
scan.append({**metadata, **s}) scan.append({**metadata, **s})
elif data_type == ".dat": elif data_type == ".dat":
# TODO: this might need to be adapted in the future, when "gamma" will be added to dat files
if metadata["zebra_mode"] == "nb":
metadata["gamma"] = metadata["twotheta"]
s = defaultdict(list) s = defaultdict(list)
match = re.search('Scanning Variables: (.*), Steps: (.*)', next(fileobj)) match = re.search('Scanning Variables: (.*), Steps: (.*)', next(fileobj))