Skip to content

Make datasets print their code instead of <...object at 0x...>#1112

Merged
bruAristimunha merged 1 commit into
NeuroTechX:developfrom
dnplchrn:add-basedataset-repr
Jun 29, 2026
Merged

Make datasets print their code instead of <...object at 0x...>#1112
bruAristimunha merged 1 commit into
NeuroTechX:developfrom
dnplchrn:add-basedataset-repr

Conversation

@dnplchrn

Copy link
Copy Markdown
Contributor

Hey there, new here. Thanks for this project!

I was running through the tutorial examples to get familiar with moabb, and it got a bit hard for me to scan with the printed objects. Small fix: added a repr to BaseDataset that returns the dataset's code, so they show up as BNCI2014-001 instead. This also tidies up the paradigm and evaluation compatibility warnings that print during a benchmark run.

Feel free to adjust or reject this.

Datasets printed as <...object at 0x...>, which made the tutorial output
and the paradigm/evaluation compatibility warnings noisy to scan. Return
the dataset code instead so they show up as e.g. BNCI2014-001.
@bruAristimunha

Copy link
Copy Markdown
Collaborator

This is a super cool idea! I think we can elaborate a little more on the __repr__in another PR.

@dnplchrn

Copy link
Copy Markdown
Contributor Author

Thanks! Happy to keep this one minimal and focused on the readable output. I'd be glad to open a follow-up PR to elaborate on repr. Did you have something specific in mind? Happy to take a crack at it

@bruAristimunha bruAristimunha merged commit 78f18a1 into NeuroTechX:develop Jun 29, 2026
14 of 15 checks passed
@bruAristimunha

Copy link
Copy Markdown
Collaborator

it is okay for now @dnplchrn, i don't have concrete proposal now

@dnplchrn dnplchrn deleted the add-basedataset-repr branch June 30, 2026 08:43
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.

2 participants