Skip to content

fix(examples): ValidTarget_Right is marker 22, not 11 - #340

Merged
pellet merged 1 commit into
NeuroTechX:masterfrom
pellet:fix/cueing-validtarget-right-marker
Sep 27, 2026
Merged

pellet merged 1 commit into
NeuroTechX:masterfrom
pellet:fix/cueing-validtarget-right-marker

Conversation

@pellet

@pellet pellet commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

The cueing experiment writes markers 11/12/21/22 for Invalid/Valid x Left/Right (eegnb/experiments/visual_cueing/cueing.py). The example script and both cueing notebooks mapped ValidTarget_Right to 11, colliding with InvalidTarget_Left, so the real valid-right trials (22) were never used.

Current MNE rejects duplicate event_id values, so this typo now fails the docs build.

One-line change in each of:

  • examples/visual_cueing/01r__cueing_singlesub_analysis.py
  • examples/visual_cueing/cueing.ipynb
  • examples/visual_cueing/CueingAnalysis_Colab.ipynb

The cueing experiment writes 11/12/21/22 for Invalid/Valid x Left/Right
(eegnb/experiments/visual_cueing/cueing.py). The example script and both
cueing notebooks mapped ValidTarget_Right to 11, colliding with
InvalidTarget_Left, so the valid-right trials (22) were never used.
Current MNE rejects duplicate event_id values, which fails the docs build.
@pellet
pellet merged commit 8521770 into NeuroTechX:master Sep 27, 2026
8 checks passed
@pellet
pellet deleted the fix/cueing-validtarget-right-marker branch September 27, 2026 03:06
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.

1 participant