Commit f9880d16 authored by HSINYUAN CHEN's avatar HSINYUAN CHEN

0.85 to 0.5

parent 39ca99a7
......@@ -47,8 +47,8 @@
<Param name="Each JS Frame" updates="constant" val="" valType="extendedCode"/>
<Param name="End Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="End JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="End JS Routine" updates="constant" val="if (resp.corr) {&amp;#10; number_correct = (number_correct + 1);&amp;#10; console.log((&quot;Correct: &quot; + number_correct.toString()));&amp;#10;} else {&amp;#10; console.log(&quot;Not correct&quot;);&amp;#10;}&amp;#10;if (((trials1.thisN + 1) === trials1.nTotal)) {&amp;#10; if (((number_correct / (trials1.nTotal + 1)) &gt;= 0.85)) {&amp;#10; trials2.finished = true;&amp;#10; console.log(&quot;Finished.&quot;);&amp;#10; } else {&amp;#10; console.log((&quot;Score: &quot; + (number_correct / (trials1.nTotal + 1)).toString()));&amp;#10; }&amp;#10;} else {&amp;#10; console.log((&quot;Trial: &quot; + trials1.thisN.toString()));&amp;#10;}&amp;#10;" valType="extendedCode"/>
<Param name="End Routine" updates="constant" val="if resp.corr:&amp;#10; number_correct = number_correct + 1&amp;#10; print('Correct: ' + str(number_correct))&amp;#10;else:&amp;#10; print('Not correct')&amp;#10;&amp;#10;if trials1.thisN + 1 == trials1.nTotal:&amp;#10; if number_correct/(trials1.nTotal + 1) &gt;= 0.85:&amp;#10; trials2.finished = True&amp;#10; print('Finished.')&amp;#10; else:&amp;#10; print('Score: ' + str(number_correct/(trials1.nTotal + 1)))&amp;#10;else:&amp;#10; print('Trial: ' + str(trials1.thisN))" valType="extendedCode"/>
<Param name="End JS Routine" updates="constant" val="if (resp.corr) {&amp;#10; number_correct = (number_correct + 1);&amp;#10; console.log((&quot;Correct: &quot; + number_correct.toString()));&amp;#10;} else {&amp;#10; console.log(&quot;Not correct&quot;);&amp;#10;}&amp;#10;if (((trials1.thisN + 1) === trials1.nTotal)) {&amp;#10; if (((number_correct / (trials1.nTotal + 1)) &gt;= 0.5)) {&amp;#10; trials2.finished = true;&amp;#10; console.log(&quot;Finished.&quot;);&amp;#10; } else {&amp;#10; console.log((&quot;Score: &quot; + (number_correct / (trials1.nTotal + 1)).toString()));&amp;#10; }&amp;#10;} else {&amp;#10; console.log((&quot;Trial: &quot; + trials1.thisN.toString()));&amp;#10;}&amp;#10;" valType="extendedCode"/>
<Param name="End Routine" updates="constant" val="if resp.corr:&amp;#10; number_correct = number_correct + 1&amp;#10; print('Correct: ' + str(number_correct))&amp;#10;else:&amp;#10; print('Not correct')&amp;#10;&amp;#10;if trials1.thisN + 1 == trials1.nTotal:&amp;#10; if number_correct/(trials1.nTotal + 1) &gt;= 0.5:&amp;#10; trials2.finished = True&amp;#10; print('Finished.')&amp;#10; else:&amp;#10; print('Score: ' + str(number_correct/(trials1.nTotal + 1)))&amp;#10;else:&amp;#10; print('Trial: ' + str(trials1.thisN))" valType="extendedCode"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="name" updates="None" val="code" valType="code"/>
</CodeComponent>
......
......@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy3 Experiment Builder (v2020.2.8),
on Mon Dec 7 16:49:30 2020
on Mon Dec 7 17:02:05 2020
If you publish work using this script the most relevant publication is:
Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lindeløv JK. (2019)
......@@ -339,7 +339,7 @@ for thisTrials2 in trials2:
print('Not correct')
if trials1.thisN + 1 == trials1.nTotal:
if number_correct/(trials1.nTotal + 1) >= 0.85:
if number_correct/(trials1.nTotal + 1) >= 0.5:
trials2.finished = True
print('Finished.')
else:
......
text,letterColor,corrAns,congruent,trials2.thisRepN,trials2.thisTrialN,trials2.thisN,trials2.thisIndex,trials1.thisRepN,trials1.thisTrialN,trials1.thisN,trials1.thisIndex,instrText.started,instrText.stopped,word.started,word.stopped,resp.keys,resp.corr,resp.rt,resp.started,resp.stopped,thanksText.started,thanksText.stopped,session,participant,date,expName,psychopyVersion,frameRate,
red,red,left,1,0,0,0,0,0,0,0,0,34.499656129999494,None,36.45325000699813,None,left,1,1.283470166999905,36.45325000699813,None,,,01,,2020_Dec_07_1702,IncorrectStopEXP,2020.2.8,60.23202484082735,
blue,blue,right,1,0,0,0,0,0,1,1,4,,,38.236968723002065,None,right,1,1.2757572609989438,38.236968723002065,None,,,01,,2020_Dec_07_1702,IncorrectStopEXP,2020.2.8,60.23202484082735,
blue,red,left,0,0,0,0,0,0,2,2,5,,,40.02038003999769,None,left,1,0.7403268899943214,40.02038003999769,None,,,01,,2020_Dec_07_1702,IncorrectStopEXP,2020.2.8,60.23202484082735,
green,blue,right,0,0,0,0,0,0,3,3,3,,,41.2703011880003,None,right,1,0.6984921260009287,41.2703011880003,None,,,01,,2020_Dec_07_1702,IncorrectStopEXP,2020.2.8,60.23202484082735,
green,green,down,1,0,0,0,0,0,4,4,2,,,42.470063344000664,None,down,1,0.7467599020019406,42.470063344000664,None,,,01,,2020_Dec_07_1702,IncorrectStopEXP,2020.2.8,60.23202484082735,
red,green,down,0,0,0,0,0,0,5,5,1,,,43.72025839300477,None,down,1,0.4325218770027277,43.72025839300477,None,,,01,,2020_Dec_07_1702,IncorrectStopEXP,2020.2.8,60.23202484082735,
,,,,0,0,0,0,,,,,,,,,,,,,,,,01,,2020_Dec_07_1702,IncorrectStopEXP,2020.2.8,60.23202484082735,
,,,,,,,,,,,,,,,,,,,,,44.27446876199974,None,,,,,,,
3.8995 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
32.0562 WARNING User requested fullscreen with size [2560 1440], but screen is actually [1920, 1080]. Using actual size
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment