From 9140798c74c9a3cabe867b34e8e3fd129f03819c Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Thu, 11 Feb 2021 16:36:42 +0100 Subject: [PATCH] Adjust the name of cell parameters This way we avoid overwritting gamma in case of nb zebra mode --- pyzebra/ccl_io.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyzebra/ccl_io.py b/pyzebra/ccl_io.py index 3bdff54..a1eb448 100644 --- a/pyzebra/ccl_io.py +++ b/pyzebra/ccl_io.py @@ -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: