Strip headers from exported EVA-files also

This commit is contained in:
rasmusvt 2022-08-26 13:23:32 +02:00
parent 42cddb8fa4
commit 7285f47db3

View file

@ -228,7 +228,7 @@ def process_2d_scans(data: dict, options={}):
img = [] img = []
dark = [] dark = []
for i in range(options['scans']): for j in range(options['scans']):
img.append(all_imgs.pop(0)) img.append(all_imgs.pop(0))
if options['darks']: if options['darks']:
@ -679,6 +679,9 @@ def strip_headers_from_xy(path: str, filename=None) -> None:
for line in lines: for line in lines:
if line[0] == '#': if line[0] == '#':
headerlines += 1 headerlines += 1
elif line[0] == "\'":
headerlines += 1
else: else:
xy.append(line) xy.append(line)