Handle older files that don't contain "zebra_mode"
This commit is contained in:
parent
9ef07cff19
commit
ea7d611819
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user