From cde2aa11824f3d19c70c8f1abd629684c5a2d5b0 Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Fri, 6 May 2022 14:46:37 +0200 Subject: [PATCH] Fix letter case for UB matrix metadata --- pyzebra/ccl_io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyzebra/ccl_io.py b/pyzebra/ccl_io.py index 3cead7b..19c6283 100644 --- a/pyzebra/ccl_io.py +++ b/pyzebra/ccl_io.py @@ -56,7 +56,7 @@ META_VARS_FLOAT = ( "s2hl", ) -META_UB_MATRIX = ("ub1j", "ub2j", "ub3j", "ub") +META_UB_MATRIX = ("ub1j", "ub2j", "ub3j", "UB") CCL_FIRST_LINE = (("idx", int), ("h", float), ("k", float), ("l", float)) @@ -119,7 +119,7 @@ def parse_1D(fileobj, data_type): metadata[variable] = float(value) elif variable in META_UB_MATRIX: - if variable == "ub": + if variable == "UB": metadata["ub"] = np.array(value) else: if "ub" not in metadata: