Skip to content

Commit

Permalink
Make sure chunk size is sufficient (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
benemer committed May 7, 2024
1 parent 1129b6e commit 4225185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/kiss_icp/datasets/helipr.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_data(self, idx: int):
with open(file_path, "rb") as f:
binary = f.read()
offset = 0
while offset < len(binary):
while offset < len(binary) - chunk_size:
list_lines.append(struct.unpack_from(f"={format_string}", binary, offset))
offset += chunk_size
data = np.stack(list_lines)
Expand Down

0 comments on commit 4225185

Please sign in to comment.