Skip to content

Commit 6e5b08c

Browse files
committed
Fix sorting by file chunk position
1 parent 136e800 commit 6e5b08c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/alphaomegarawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ def _get_analogsignal_chunk(
936936
# we sort by chunk position in the file because we want to optimize
937937
# IO access and possibly read in sequential access. This is mainly
938938
# true for hard drives but shouldn't hurt flash memory
939-
file_chunks[filename].sort(key=lambda x: x[0])
939+
file_chunks[filename].sort(key=lambda x: x[2])
940940
for filename in file_chunks:
941941
for channel_index, chunk_index, file_position, chunk_size in file_chunks[
942942
filename

0 commit comments

Comments
 (0)