Skip to content

[EHN] Allowing Slicedataset inference - #716

Merged
PierreGtch merged 4 commits into
braindecode:masterfrom
bruAristimunha:slicedataset
Apr 6, 2025
Merged

PierreGtch merged 4 commits into
braindecode:masterfrom
bruAristimunha:slicedataset

Conversation

@bruAristimunha

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • docs/whats_new.rst: Language not supported

if (
isinstance(X, mne.BaseEpochs)
or (hasattr(X, "shape") and len(X.shape) >= 2)
or isinstance(X, SliceDataset)

Copilot AI Apr 4, 2025

Copy link

Choose a reason for hiding this comment

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

Including SliceDataset in the initial if condition preempts the specialized elif block intended for SliceDataset handling. Consider removing 'or isinstance(X, SliceDataset)' from the if condition so that the dedicated SliceDataset branch (lines 209-213) is reached.

Suggested change
or isinstance(X, SliceDataset)

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

not good suggestion @copilot

@PierreGtch PierreGtch left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM :)

@PierreGtch
PierreGtch merged commit 3766c2f into braindecode:master Apr 6, 2025
@bruAristimunha
bruAristimunha deleted the slicedataset branch April 6, 2025 15:48
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.

3 participants