Skip to content

Commit c52dbdf

Browse files
committed
Do not ignore the file_id.
1 parent 9e5a929 commit c52dbdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mne/_fiff/tag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,9 @@ def _read_old_pack(fid, tag, shape, rlims):
361361

362362
def _read_dir_entry_struct(fid, tag, shape, rlims):
363363
"""Read dir entry struct tag."""
364-
pos = tag.pos + 16
364+
pos = tag.pos
365365
entries = list()
366-
for offset in range(1, tag.size // 16):
366+
for offset in range(tag.size // 16):
367367
ent = _read_tag_header(fid, pos + offset * 16)
368368
# The position of the real tag on disk is stored in the "next" entry within the
369369
# directory, so we need to overwrite ent.pos. For safety let's also overwrite

0 commit comments

Comments
 (0)