Skip to content

Commit

Permalink
FIX: Really
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Sep 24, 2024
1 parent a01faf4 commit 56d09ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mne/io/fiff/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ def __init__(
# (magic) does not store the file-like object.
# 2. We need to ensure "filenames" passed to the constructor below gets a list
# of Path or None.
# 3. We need to (after calling super().__init__) to remove the file-like objects
# from _raw_extras.
# 3. We need to remove the file-like objects from _raw_extras. This must
# be done *after* the super().__init__ call, because the constructor
# needs the file-like objects to read the data (which it will do because we
# force preloading for file-like objects).

# Avoid file-like in _get_argvalues (1)
fname = _path_from_fname(fname)
Expand Down

0 comments on commit 56d09ad

Please sign in to comment.