Skip to content

Commit

Permalink
fix outdated example
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrockhill committed Dec 21, 2023
1 parent 7ef087d commit c3ae450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/decoding/decoding_csp_eeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
# avoid classification of evoked responses by using epochs that start 1s after
# cue onset.
tmin, tmax = -1.0, 4.0
event_id = dict(hands=2, feet=3)
subject = 1
runs = [6, 10, 14] # motor imagery: hands vs feet

Expand All @@ -50,6 +49,7 @@
eegbci.standardize(raw) # set channel names
montage = make_standard_montage("standard_1005")
raw.set_montage(montage)
raw.annotations.rename(dict(T1='hands', T2='feet'))

# Apply band-pass filter
raw.filter(7.0, 30.0, fir_design="firwin", skip_by_annotation="edge")
Expand All @@ -60,7 +60,7 @@
# Testing will be done with a running classifier
epochs = Epochs(
raw,
event_id=dict(T1=2, T2=3),
event_id=['hands', 'feet'],
tmin=tmin,
tmax=tmax,
proj=True,
Expand Down

0 comments on commit c3ae450

Please sign in to comment.