diff --git a/pyzebra/ccl_io.py b/pyzebra/ccl_io.py index fa32338..450be76 100644 --- a/pyzebra/ccl_io.py +++ b/pyzebra/ccl_io.py @@ -126,6 +126,10 @@ def parse_1D(fileobj, data_type): # this is the end of metadata and the start of data section break + # handle older files that don't contain "zebra_mode" metadata + if "zebra_mode" not in metadata: + metadata["zebra_mode"] = "nb" + # read data scan = [] if data_type == ".ccl":