Skip to content

Conversation

@scott-huberty
Copy link
Contributor

Closes #13414
Closes #13415 (supersedes)

FYI @larsoner I tried to push directly to #13415 But I still don't think I have those rights (got: remote: Permission to devparikh0506/mne-python.git denied to scott-huberty). Might discuss this with @drammock during our Meeting tomorrow to see if I am doing something wrong.

devparikh0506 and others added 8 commits September 10, 2025 23:15
… ≥1.24

Note that .encode() was added because np.frombuffer requires bytes.
…string (NumPy ≥1.24)

- Now reading a single byte directly from the file handle (fid.read(1)), and parsing it using np.frombuffer with dtype=UINT8.

- Added changelog entry (doc/changes/devel/13415.bugfix.rst) and
  contributor link in doc/changes/names.inc.
previous condition used != "", which compares against a string, but I think the dev meant to guard against b"" not "".

This replaces it with an explicit non-empty-bytes check to make intent clear and behavior correct.
Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@larsoner
Copy link
Member

CircleCI failures being fixed by mne-tools/mne-installers#392

@larsoner larsoner enabled auto-merge (squash) November 19, 2025 17:12
@larsoner larsoner merged commit 823463e into mne-tools:main Nov 19, 2025
31 of 32 checks passed
larsoner added a commit to zhijingz/mne-python that referenced this pull request Nov 20, 2025
* upstream/main:
  ENH: Parse EyeLink BUTTON Events (e.g. from a game controller) (mne-tools#13499)
  FIX: Fix regression with mne.viz.plot_evoked (mne-tools#13481)
  DOC: related software doc (mne-tools#13498)
  FIX: Replace use of deprecated Numpy func in GDF reader  (Supersedes mne-tools#13415) (mne-tools#13497)
  DOC: Link to membership from governance page (mne-tools#13496)
  [pre-commit.ci] pre-commit autoupdate (mne-tools#13495)
  BUG: Fix issue with Montage.plot (mne-tools#13494)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

read_raw_gdf fails with NumPy ≥1.24 (ValueError: The binary mode of fromstring is removed, use frombuffer instead)

3 participants