Skip to content
Snippets Groups Projects
Commit 80dcbcf4 authored by Tibor Auer's avatar Tibor Auer
Browse files

UPDATE: take RT from psychopy

parent 2d71752b
No related branches found
No related tags found
No related merge requests found
......@@ -318,7 +318,7 @@ if __name__ == '__main__':
else:
logging.log(level=logging.DATA, msg='Stimulation - {:.3f} - Frequency: {}'.format(SSO.clock,0))
for thisSample in loopSample:
for thisSample in loopSample:
# Sample
trialClock.reset(-interimClock.getTime())
jitter = thisSample['onsetSample']
......@@ -515,6 +515,7 @@ if __name__ == '__main__':
fIn = open(filename+'.log')
log = csv.reader(fIn, delimiter='\t')
sample = []
nTrial = -1
nMatch = 0
match = []
itemToWrite = [None]*5 # 5 columns
......@@ -532,6 +533,7 @@ if __name__ == '__main__':
nMatch = 0
elif item[2].find('Match') >= 0:
match = fromstring(item[2].split(' - ')[2][1:-1],sep=' ')
nTrial += 1
nMatch += 1
itemToWrite[2] += str(nMatch)
else:
......@@ -539,7 +541,7 @@ if __name__ == '__main__':
if item[2].find('Response') >= 0:
itemToWrite[2] += str(nMatch)
if len(button):
button[0] = round(button[0]-itemToWrite[0],4)
button[0] = round(thisExp.entries[nTrial]['resp.rt'],4)
else:
button = ['n/a','miss']
itemToWrite[3:5] = button
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment