Skip to content
Snippets Groups Projects
Commit ee4b5ade authored by Gabriele Girelli's avatar Gabriele Girelli Committed by GitHub
Browse files

Allowing case of multiple unwanted bytes per step

parent 57632294
No related branches found
No related tags found
No related merge requests found
......@@ -264,7 +264,7 @@ class Parser(object):
if all([0 == image_group_data[byte_ids[i]+i] for i in range(len(byte_ids))]):
warnings.warn(f'Identified {n_unwanted_bytes} ({unwanted_byte_per_step}*{height}) unwanted zero-bytes in the ND2 file, removed.')
for i in range(len(byte_ids)):
del image_group_data[byte_ids[i]]
del image_group_data[byte_ids[i]:(byte_ids[i]+unwanted_byte_per_step)]
else:
warnings.warn(f'Identified {n_unwanted_bytes} unwanted non-zero bytes in the ND2 file.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment