From b39d970960e41d72ab303f6008c64e9d73b0f931 Mon Sep 17 00:00:00 2001 From: Ivan Usov Date: Thu, 27 May 2021 18:18:14 +0200 Subject: [PATCH] Lowercase column names in dat files --- pyzebra/ccl_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyzebra/ccl_io.py b/pyzebra/ccl_io.py index d383a9d..646ccf9 100644 --- a/pyzebra/ccl_io.py +++ b/pyzebra/ccl_io.py @@ -198,7 +198,7 @@ def parse_1D(fileobj, data_type): raise Exception("Unknown mode in dat file.") s["monitor"] = float(match.group(3)) - col_names = next(fileobj).split() + col_names = list(map(str.lower, next(fileobj).split())) for line in fileobj: if "END-OF-DATA" in line: