Skip to content

Commit 7ffbed1

Browse files
committed
reset file position to start after reading block index
1 parent e3d395c commit 7ffbed1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

asdf/_block/reader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,4 +247,5 @@ def read_blocks(fd, memmap=False, lazy_load=False, validate_checksums=False, aft
247247
return _read_blocks_serially(fd, memmap, lazy_load, after_magic)
248248

249249
# skip magic for each block
250+
fd.seek(starting_offset)
250251
return [ReadBlock(offset + magic_len, fd, memmap, lazy_load, validate_checksums) for offset in block_index]

0 commit comments

Comments
 (0)