Skip to content

Conversation

@greasycat
Copy link
Contributor

@greasycat greasycat commented Feb 12, 2025

Reference issue (if any)

Fixes #13111.

What does this implement/fix?

This fixes a "Python integer 512 out of bounds" issue that occurred when accumulating values using a for-loop with exponentiation (2 ** (i * 8)) in a GDF parsing function. The issue arose because intermediate values exceeded the uint8 (0-255) limit.

Related Fix: #12909

@welcome
Copy link

welcome bot commented Feb 12, 2025

Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴

@greasycat greasycat changed the title BUG: Fix EDF Out of Bound Error BUG: Fix GDF Out of Bound Error Feb 12, 2025
@greasycat greasycat marked this pull request as ready for review February 12, 2025 01:58
@scott-huberty
Copy link
Contributor

@larsoner or @drammock - when you have a moment can you approve/trigger the remaining workflows?

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.

Marking for merge-when-green and restarting the spuriously failed CI, thanks in advance @greasycat !

@drammock drammock enabled auto-merge (squash) February 13, 2025 20:21
@drammock drammock merged commit b4a7c64 into mne-tools:main Feb 13, 2025
30 checks passed
@welcome
Copy link

welcome bot commented Feb 13, 2025

🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪

@greasycat greasycat deleted the bug-fix/edf-n-event-out-of-bound branch February 13, 2025 22:11
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.

Importing GDF fails for BCI Competition IV dataset 2a

4 participants