Handle older files that don't contain "zebra_mode"

This commit is contained in:
usov_i 2021-02-10 13:20:22 +01:00
parent 9ef07cff19
commit ea7d611819

View File

@ -126,6 +126,10 @@ def parse_1D(fileobj, data_type):
# this is the end of metadata and the start of data section # this is the end of metadata and the start of data section
break break
# handle older files that don't contain "zebra_mode" metadata
if "zebra_mode" not in metadata:
metadata["zebra_mode"] = "nb"
# read data # read data
scan = [] scan = []
if data_type == ".ccl": if data_type == ".ccl":