-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.R
39 lines (30 loc) · 974 Bytes
/
config.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
if (!exists('proj.env')) {
source('env.R')
}
# default settings
proj.env$set.config = function(envir = proj.env) {
config = new.env(parent=emptyenv())
config$type.basis = 'fourier'
config$nbasis = 39
config$hz = 250
config$trial_duration = 7 # In seconds
config$ncl = 4
config$num_of_channels = 60
config$channels = 1:config$num_of_channels
config$reload.data = FALSE
config$verbose = TRUE
config$raw.data.path = 'data/eeg.raw.bin'
config$event.matrix.path = 'data/event.matrix.bin'
# Some of the trials are rejected
# should we ignore them or use for our analysis
config$ignore_rejected_trials = TRUE
# event codes
config$codes = list()
config$codes$rejected = 0x3ff
config$codes$left_hand = 0x301
config$codes$right_hand = 0x302
config$codes$tongue = 0x304
config$codes$foot_towards_right = 0x303
assign('config', config, envir = envir)
}
proj.env$set.config()