Skip to content

Accept an explicit subject-label mapping in nemar_subject_template (#1098) - #1264

Merged
bruAristimunha merged 1 commit into
NeuroTechX:developfrom
bruAristimunha:fix/nemar-subject-mapping-1098
Oct 14, 2026
Merged

bruAristimunha merged 1 commit into
NeuroTechX:developfrom
bruAristimunha:fix/nemar-subject-mapping-1098

Conversation

@bruAristimunha

Copy link
Copy Markdown
Collaborator

Accept an explicit subject-label mapping in nemar_subject_template (#1098)

BIDS subject labels can be any alphanumeric string (sub-zdvm, sub-A01),
which no format template can produce. nemar_subject_template now also
accepts a {moabb_subject: bids_label} mapping; string templates and None
behave exactly as before. A mapping without an entry for the subject
raises RuntimeError, like a template that cannot format it.

Lioi2020_XP2 replaces its _nemar_subject override (non-contiguous
xp2NN labels) with the mapping; labels are unchanged.

Closes #1098

…euroTechX#1098)

BIDS subject labels can be any alphanumeric string (sub-zdvm, sub-A01),
which no format template can produce. nemar_subject_template now also
accepts a {moabb_subject: bids_label} mapping; string templates and None
behave exactly as before. A mapping without an entry for the subject
raises RuntimeError, like a template that cannot format it.

Lioi2020_XP2 replaces its _nemar_subject override (non-contiguous
xp2NN labels) with the mapping; labels are unchanged.
@bruAristimunha
bruAristimunha force-pushed the fix/nemar-subject-mapping-1098 branch from 92da208 to d426f06 Compare October 14, 2026 14:14
@bruAristimunha
bruAristimunha merged commit 42b263b into NeuroTechX:develop Oct 14, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant