Adjust the name of cell parameters

This way we avoid overwritting gamma in case of nb zebra mode
This commit is contained in:
usov_i 2021-02-11 16:36:42 +01:00
parent 96eaa27e55
commit 9140798c74

View File

@ -114,6 +114,8 @@ def parse_1D(fileobj, data_type):
elif variable in META_VARS_FLOAT:
if variable == "2-theta": # fix that angle name not to be an expression
variable = "twotheta"
if variable in ("a", "b", "c", "alpha", "beta", "gamma"):
variable += "_cell"
metadata[variable] = float(value)
elif variable in META_UB_MATRIX: