Skip to content
Snippets Groups Projects
Commit 19d29659 authored by Ruben Verweij's avatar Ruben Verweij Committed by Lorenzo ZOLFANELLI
Browse files

Fixes issue #50

parent 728a425a
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,9 @@ def get_unwanted_bytes_ids(image_group_data, image_data_start, height, width):
# rows (height), as the same unmber of unwanted bytes is expected to be
# appended at the end of each row. Then, returns the indexes of the unwanted
# bytes.
# Skip the first 4 elements that correspond to the time stamp
number_of_true_channels = int(len(image_group_data[4:]) / (height * width))
n_unwanted_bytes = (len(image_group_data[image_data_start:])) % (height * width)
n_unwanted_bytes = (len(image_group_data[4:])) % (height * width)
if not n_unwanted_bytes:
return np.arange(0)
assert 0 == n_unwanted_bytes % height, (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment