-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
106 lines (77 loc) · 3.18 KB
/
config.py
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#---- new to PA3 ----#
#how long to give thie stim/no stim confirmation after key press
CONFIRMATION_DURATION = 1500
#how long to wait between an answer the to "is this a stim trial?" question
#and the beginning of the study sequence
AFTER_STIM_QUESTION = 3000
#how man SECONDS should the sync period be
SYNC_DURATION_SECONDS = 60
#stim parameters
STUDY_STIM_DURATION = 3000
CUE_STIM_DURATION=3000
#how long should the mini-pulses go on for in the 10 x 2 on 10 off cycle
# Brad - 2000
CYCLE_PULSE_ON_DURATION = 2000
#how long should the mini-pulses go off for in the 10 x 2 on 10 off cycle
#Brad - 10000
CYCLE_PULSE_OFF_DURATION = 5000
#number of such cycles
PULSE_CYCLES = 2 #2
#frequency of pulse for stimulating study/cue, and background data. measured in number of pulses per second.
#PyFR_Stim - 100
STIM_PULSE_FREQ = 20
NUM_SYNC_PULSE = 60
STOP_BEEP_FREQ=400
STOP_BEEP_DUR=300
STOP_BEEP_RISE_FALL=100
#---- from PA2 ----#
# The following parameters were taken from the config.ini file attained
# with the orinal py2 experiment
JITTER=75 # (+/- jitter) introduced to presentation timing
NUM_PAIRS=4 # number of pairs in each list (must be even)
NUM_TRIALS=25 # number of trials total (must be odd)
#NUM_TRIALS=1 # number of trials total (must be odd)
MIN_SPACING=2 # min # of items between study and test.
# must be less than half of NUM_PAIRS
# PA3: Mike says 2 or 1 are possible, 2 should be default
USE_INTERFERENCE=0 # use interference when constructing lists?
USE_CORRELATION=1 # use correlations when constructing pairs?
MIN_CORRELATION=-.1
MAX_CORRELATION=0.3
DURATION_CUE=3000 # PA3: KEEP THIS THE SAME AS RECORD_LEN & CUE_STIM_DURATION
# durzation of presentation of the cue (zero indicates
# the the probe should be left on until the
# subject makes a response)
# all timing values are in milliseconds
DELAY_ORIENT=1500 # delay before the orienting stimulus (also
#the delay after presentation of a word pair)
RECORD_LEN=DURATION_CUE + DELAY_ORIENT # PA3: KEEP THIS THE SAME AS DURATION_CUE
# length of time to record subjects response
# (zero indicates record until button is pressed)
DURATION_ORIENT=300 # duration of the orienting stimulus
DELAY_WORD=750 # delay before presentation of a word
#PA3 changes to 2500
DURATION_WORD=2500 # duration of presentation of a word
DELAY_CUE=750 # delay before presentation of the cue
# The following parameters were taken from the config.ini file attained
# with the orinal py2 experiment
DATA_DIR="data"
MARKER_FILE="marker.bin"
BEHAV_FILE="behav.txt"
MATLAB_FILE="subdat.csv"
CONF_FILE="config.ini"
SYNC_FILE="syncfile.txt"
CORR_FILE="txt/wordmatrix.txt"
POOL_FILE="txt/nounpool.txt"
INTRO_FILE=open("txt/intro.txt").read()
EXP_NAME="PYPA3"
EXP_VERSION="v1.0"
ORIENTING_STUDY="XXXXXX"
ORIENTING_TEST="??????"
DIR_PERM=0755
ESC_KEY=27
ENTER_KEY=10
# if using word correlations to determine list structure, this
# parameter determines the minimum acceptable difference between the
# minCorr and maxCorr parameters
MIN_CORR_DIFF=0.3