Skip to content

Commit

Permalink
renamed T3 is now T7
Browse files Browse the repository at this point in the history
    T4 is now T8
    T5 is now P7
    T6 is now P8
according to the MCN system
  • Loading branch information
behinger committed Sep 18, 2024
1 parent 5d75468 commit 41ef83c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/eeg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const CHANNEL_TO_POSITION_10_05 = begin
end

# even though these are not actively used, sometimes they can be helpful just to plot a default subset of channels. Therefore we havent deleted them yet (because 10_05 is a superset)
const CHANNELS_10_20 = ["fp1", "f3", "c3", "p3", "o1", "f7", "t3", "t5", "fz", "cz", "pz", "fp2", "f4", "c4", "p4", "o2", "f8", "t4", "t6"]
const CHANNELS_10_20 = ["fp1", "f3", "c3", "p3", "o1", "f7", "t7", "p7", "fz", "cz", "pz", "fp2", "f4", "c4", "p4", "o2", "f8", "t8", "p8"]

const CHANNEL_TO_POSITION_10_20 = begin
# We load this during precompilation, so that this gets stored as a global
Expand All @@ -91,15 +91,15 @@ end

"""
labels2positions(labels)
Currently only supports 10/20 layout, by looking it up in `TopoPlots.CHANNEL_TO_POSITION_10_20`.
Currently supports 10/05 layout, by looking it up in `TopoPlots.CHANNEL_TO_POSITION_10_05`.
"""
function labels2positions(labels)
return map(labels) do label
key = lowercase(label)
if haskey(CHANNEL_TO_POSITION_10_05, key)
return CHANNEL_TO_POSITION_10_05[key]
else
error("Currently only 10_20 is supported. Found label: $(label)")
error("Currently only 10_05 is supported. Found label: $(label)")
end
end
end
Expand Down

0 comments on commit 41ef83c

Please sign in to comment.