Skip to content

BUG: Fix bug with last item access#12248

Merged
cbrnr merged 1 commit intomne-tools:mainfrom
larsoner:last
Nov 29, 2023
Merged

BUG: Fix bug with last item access#12248
cbrnr merged 1 commit intomne-tools:mainfrom
larsoner:last

Conversation

@larsoner
Copy link
Copy Markdown
Member

Perhaps I'm the first person to try raw[:, -1] because it returns an empty array on main which is wrong:

>>> raw[:, -1][0].shape
(63, 0)

@cbrnr cbrnr enabled auto-merge (squash) November 29, 2023 15:59
@cbrnr cbrnr merged commit b107d92 into mne-tools:main Nov 29, 2023
@agramfort
Copy link
Copy Markdown
Member

never too late to fix this one :)

thx @larsoner

snwnde pushed a commit to snwnde/mne-python that referenced this pull request Mar 20, 2024
@larsoner larsoner deleted the last branch July 29, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-candidate on-merge: backport to maint/1.12

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants