-
Notifications
You must be signed in to change notification settings - Fork 0
/
Eyetracking_MW_reading6_08_noP_WORKING.psyexp
2184 lines (2184 loc) · 196 KB
/
Eyetracking_MW_reading6_08_noP_WORKING.psyexp
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" ?>
<PsychoPy2experiment encoding="utf-8" version="2022.2.5">
<Settings>
<Param val="use prefs" valType="str" updates="None" name="Audio latency priority"/>
<Param val="use prefs" valType="str" updates="None" name="Audio lib"/>
<Param val="" valType="str" updates="None" name="Completed URL"/>
<Param val="auto" valType="str" updates="None" name="Data file delimiter"/>
<Param val="u'data/%s_%s_%s' % (expInfo['participant'], expName, expInfo['date'])" valType="code" updates="None" name="Data filename"/>
<Param val="True" valType="bool" updates="None" name="Enable Escape"/>
<Param val="{'participant': '', 'session': '001'}" valType="code" updates="None" name="Experiment info"/>
<Param val="True" valType="bool" updates="None" name="Force stereo"/>
<Param val="False" valType="bool" updates="None" name="Full-screen window"/>
<Param val="" valType="str" updates="None" name="HTML path"/>
<Param val="" valType="str" updates="None" name="Incomplete URL"/>
<Param val="testMonitor" valType="str" updates="None" name="Monitor"/>
<Param val="[]" valType="list" updates="None" name="Resources"/>
<Param val="False" valType="bool" updates="None" name="Save csv file"/>
<Param val="False" valType="bool" updates="None" name="Save excel file"/>
<Param val="False" valType="bool" updates="None" name="Save hdf5 file"/>
<Param val="True" valType="bool" updates="None" name="Save log file"/>
<Param val="True" valType="bool" updates="None" name="Save psydat file"/>
<Param val="True" valType="bool" updates="None" name="Save wide csv file"/>
<Param val="1" valType="num" updates="None" name="Screen"/>
<Param val="False" valType="bool" updates="None" name="Show info dlg"/>
<Param val="False" valType="bool" updates="None" name="Show mouse"/>
<Param val="height" valType="str" updates="None" name="Units"/>
<Param val="2022.2.5" valType="str" updates="None" name="Use version"/>
<Param val="[1920, 1080]" valType="list" updates="None" name="Window size (pixels)"/>
<Param val="avg" valType="str" updates="None" name="blendMode"/>
<Param val="$[0,0,0]" valType="color" updates="None" name="color"/>
<Param val="rgb" valType="str" updates="None" name="colorSpace"/>
<Param val="100.1.1.1" valType="str" updates="None" name="elAddress"/>
<Param val="FILTER_LEVEL_2" valType="str" updates="None" name="elDataFiltering"/>
<Param val="FILTER_LEVEL_OFF" valType="str" updates="None" name="elLiveFiltering"/>
<Param val="EYELINK 1000 DESKTOP" valType="str" updates="None" name="elModel"/>
<Param val="ELLIPSE_FIT" valType="str" updates="None" name="elPupilAlgorithm"/>
<Param val="PUPIL_AREA" valType="str" updates="None" name="elPupilMeasure"/>
<Param val="1000" valType="num" updates="None" name="elSampleRate"/>
<Param val="False" valType="bool" updates="None" name="elSimMode"/>
<Param val="RIGHT_EYE" valType="str" updates="None" name="elTrackEyes"/>
<Param val="PUPIL_CR_TRACKING" valType="str" updates="None" name="elTrackingMode"/>
<Param val="Eyetracking_MW_reading6_08_noP_WORKING" valType="str" updates="None" name="expName"/>
<Param val="on Sync" valType="str" updates="None" name="exportHTML"/>
<Param val="Pupil Labs" valType="str" updates="None" name="eyetracker"/>
<Param val="127.0.0.1" valType="str" updates="None" name="gpAddress"/>
<Param val="4242" valType="num" updates="None" name="gpPort"/>
<Param val="ioHub" valType="str" updates="None" name="keyboardBackend"/>
<Param val="exp" valType="code" updates="None" name="logging level"/>
<Param val="('MIDDLE_BUTTON',)" valType="list" updates="None" name="mgBlink"/>
<Param val="CONTINUOUS" valType="str" updates="None" name="mgMove"/>
<Param val="0.5" valType="num" updates="None" name="mgSaccade"/>
<Param val="0.6" valType="num" updates="None" name="plConfidenceThreshold"/>
<Param val="True" valType="bool" updates="None" name="plPupilCaptureRecordingEnabled"/>
<Param val="C:\Users\BAR Lab\Desktop\Leilani MW Eyetracking\EyeData" valType="str" updates="None" name="plPupilCaptureRecordingLocation"/>
<Param val="127.0.0.1" valType="str" updates="None" name="plPupilRemoteAddress"/>
<Param val="50020" valType="num" updates="None" name="plPupilRemotePort"/>
<Param val="1000" valType="num" updates="None" name="plPupilRemoteTimeoutMs"/>
<Param val="False" valType="bool" updates="None" name="plPupillometryOnly"/>
<Param val="Monitor" valType="str" updates="None" name="plSurfaceName"/>
<Param val="" valType="str" updates="None" name="tbLicenseFile"/>
<Param val="" valType="str" updates="None" name="tbModel"/>
<Param val="60" valType="num" updates="None" name="tbSampleRate"/>
<Param val="" valType="str" updates="None" name="tbSerialNo"/>
</Settings>
<Routines>
<Routine name="Launch">
<CodeComponent name="code">
<Param val="" valType="extendedCode" updates="constant" name="Before Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Before JS Experiment"/>
<Param val="#import what we need to generate a random number&#10;import random, xlrd&#10;import time&#10;&#10;#Use the machine time as a seed to generate a random number from (allows for closer to "truly random" numbers)&#10;random.seed(time.process_time())&#10;#set variable myRand to a random number (either 1 or 2); myRandP (EITHER 3 OR 4)&#10;rand = random.randint(1,2) #random number for choosing experimental condition order&#10;randP = random.randint(3,4) #random number for choosing reading pages order&#10;&#10;#set new variable 'currCondition' depending on what random number we generated&#10;if rand == 1:&#10; #50% chance of being in the PC condition&#10; currCondition = "PC"&#10;elif rand == 2:&#10; #50% chance of being in the SC condition&#10; currCondition = "SC"&#10; &#10;#CREATE A VARIABLE CALLED currConditionP and set it depending on randP&#10;if randP == 3:&#10; #50% chance of being Tropo pages&#10; currConditionP = "Tropo"&#10;elif randP == 4:&#10; #50% chance of being Life pages&#10; currConditionP = "Life"&#10;&#10;#For testing purposes we can set our condition and pages here. &#10;#Just comment out the two lines below to run the experiment randomly.&#10;currCondition = "SC"&#10;#currConditionP = "Tropo"&#10;&#10;" valType="extendedCode" updates="constant" name="Begin Experiment"/>
<Param val="import * as random from 'random';&#10;import * as xlrd from 'xlrd';&#10;import * as time from 'time';&#10;var currCondition, currConditionP, rand, randP;&#10;random.seed(time.clock());&#10;rand = random.randint(1, 2);&#10;randP = random.randint(3, 4);&#10;if ((rand === 1)) {&#10; currCondition = "PC";&#10;} else {&#10; if ((rand === 2)) {&#10; currCondition = "SC";&#10; }&#10;}&#10;if ((randP === 3)) {&#10; currConditionP = "Tropo";&#10;} else {&#10; if ((randP === 4)) {&#10; currConditionP = "Life";&#10; }&#10;}&#10;currCondition = "PC";&#10;" valType="extendedCode" updates="constant" name="Begin JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin Routine"/>
<Param val="Py" valType="str" updates="None" name="Code Type"/>
<Param val="" valType="extendedCode" updates="constant" name="Each Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="Each JS Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="End Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="End Routine"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="code" valType="code" updates="None" name="name"/>
</CodeComponent>
</Routine>
<Routine name="AQ_10_Qs">
<ImageComponent name="AQ_10">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="$chAQ10" valType="file" updates="set every repeat" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="" valType="str" updates="constant" name="mask"/>
<Param val="AQ_10" valType="code" updates="None" name="name"/>
<Param val="" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(1, 0.7)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="num" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<KeyboardComponent name="AQ_key_resp">
<Param val="'1','2','3','4'," valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="True" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="True" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="AQ_key_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="last key" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="True" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
</Routine>
<Routine name="Demographics"/>
<Routine name="PracticeTrials">
<CodeComponent name="code_7">
<Param val="" valType="extendedCode" updates="constant" name="Before Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Before JS Experiment"/>
<Param val="##ONE TIME INITIALIZATION START&#10;#setting a bunch of defaults here (we will reset these in every practice or reading loop)&#10;opacityImage1 = 0 #PC image opacity (by default our probe and intentionality images are hidden)&#10;opacityImage2 = 0 #SC image opacity&#10;time1=0 #variables for recording response time data&#10;time2=0&#10;resp1=0 #variables for recording key press data&#10;resp2=0&#10;printNow = 0 #used to trigger data writing to output file&#10;keys = "" #stores keypress values &#10;#these three variables are used to start our timers at the right spot and avoid some edge cases&#10;firstLoop = True&#10;firstRoutine = True&#10;timerStarted = False &#10;&#10;&#10;#start two clocks&#10;mainTimer = core.Clock() # this one just runs for the whole PracticeTrial loop&#10;probeTimer = core.Clock() # this one stops and restarts every time one of our probe/intentionality images pops up&#10;&#10;myCount = 1 #this counts up and tells which value from the probe list we should use&#10;&#10;# import some stuff just in case&#10;import random, copy&#10;from random import randint&#10;from decimal import *&#10;import csv&#10;from numpy import *&#10;from psychopy import core, event&#10;event.getKeys() #clear the keyboard buffer just in case they recently pressed a relevant key&#10;##ONE TIME INITIALIZATION END&#10;&#10;# here's a list of the time in seconds between probes. The probe clock starts ticking when the last seen probe goes away&#10;# change this to adjust probes for PracticeTrials&#10;probe = [0, 15, 15, 15]&#10;# first item in probe, 0, never happens because myCount starts at 1. Ignore first element in the probe list." valType="extendedCode" updates="constant" name="Begin Experiment"/>
<Param val="import * as random from 'random';&#10;import * as copy from 'copy';&#10;import {randint} from 'random';&#10;import {*} from 'decimal';&#10;import * as csv from 'csv';&#10;import {*} from 'numpy';&#10;import {core} from 'psychopy';&#10;var isPaused, mainTimer, myCount, opacityImage1, opacityImage2, opacityRestart, printNow, printX, probe, probeTimer, resp1, resp2, time1, time2, timeThru;&#10;opacityImage1 = 0;&#10;opacityImage2 = 0;&#10;opacityRestart = 0;&#10;isPaused = 0;&#10;time1 = 0;&#10;time2 = 0;&#10;resp1 = 0;&#10;resp2 = 0;&#10;timeThru = 0;&#10;printNow = 0;&#10;printX = 0;&#10;mainTimer = new core.Clock();&#10;probeTimer = new core.Clock();&#10;myCount = 1;&#10;probe = [0, 8, 10, 15];&#10;" valType="extendedCode" updates="constant" name="Begin JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin JS Routine"/>
<Param val="#if PracticeTrials just started then start our timers at 0. We never do this again after the first loop.&#10;if firstRoutine:&#10; firstRoutine = False&#10; probeTimer.reset(0)&#10; mainTimer.reset(0)&#10; timerStarted = True" valType="extendedCode" updates="constant" name="Begin Routine"/>
<Param val="Py" valType="str" updates="None" name="Code Type"/>
<Param val="keys = event.getKeys() #get latest key presses&#10;&#10;#timerStarted is used here to make sure that we don't end the routine before we get a chance to reset the timer at the start of PracticeTrials&#10;if (mainTimer.getTime() > 180) and timerStarted: &#10; continueRoutine = False #quit every routine once the main timer goes over 3 minutes&#10;&#10;if firstLoop: #check if it's the very first frame&#10; keys = []&#10; event.clearEvents() #ignore any keypresses that seem to have happened in or before the first frame of PracticeTrials&#10;&#10;#this is the self-caught condition &#10;if currCondition=='SC':&#10; &#10; if PracticeTrails_key_resp.keys == 'space': #check if the user presses the space key&#10; continueRoutine = False #go to the next page for reading&#10; &#10; if '1' in keys: #Check if the user presses the '1' key to report MW&#10; opacityImage2 = 1 #show the intentionality image&#10; TimeAbs = mainTimer.getTime() #get the time that the key was pressed&#10; TimeSinceLast = probeTimer.getTime() #get the time since the last probe popped up&#10; keys = []&#10; event.clearEvents() #clear the keys to wait for the next input&#10;&#10; if (opacityImage2 == 1) and ('u' in keys or 'i' in keys): #while we show the intentionality image, wait to see if the 'u' or 'i' key is pressed&#10; opacityImage2 = 0 #hide the intentionality image&#10; time2 = mainTimer.getTime() - TimeAbs #store the time it took the user to respond with the 'u' or 'i' key&#10; resp2 = keys[0] #store the name of the key that was pressed&#10; keys = []&#10; event.clearEvents()&#10; printNow = 1 #start printing our data&#10;&#10; if printNow == 1: #time to write out data to our data file&#10; thisExp.addData('probe_appeared', TimeAbs) #log the time that the SC probe appeared (user pressed '1' key)&#10; thisExp.addData('time_since_last_probe', TimeSinceLast) #log time since last probe. Should be time since start of experiment if this is the first probe&#10; thisExp.addData('response_delay', time2) #log delay from probe appearing to response key being pressed&#10; thisExp.addData('probe_key_response', resp2) #log the key response to the probe&#10; thisExp.addData('condition', currCondition) #save the current condition&#10; thisExp.nextEntry() #if we do not move to the next line in the data file, then any other probes that occur before the end of this routine will overwrite our previous probe data&#10; probeTimer.reset(0) #reset the probe timer until the next time they self-report&#10; time1=0 #reset our time and response variables&#10; time2=0&#10; resp1=0&#10; resp2=0&#10; printNow = 0&#10;&#10;#this is the probe-caught condition&#10;if currCondition=='PC':&#10; &#10; if PracticeTrails_key_resp.keys == 'space': #check if the user presses the space key&#10; continueRoutine = False #go to the next page for reading&#10; &#10; #we need to check that opacityImage1 is not 1 here. Otherwise this if statement is true every frame until we get a response, which ruins our data.&#10; if opacityImage1 != 1 and (len(probe) > myCount) and probeTimer.getTime() >= probe[myCount]: # if the right amt of time has passed, display probe&#10; opacityImage1=1 #show probe image&#10; TimeAbs = mainTimer.getTime() #get the time the probe appeared&#10; TimeSinceLast = probeTimer.getTime() #get the time since the last probe went away&#10; &#10; if opacityImage1 == 1 and ('0' in keys or 'i' in keys or 'u' in keys): #Wait for the user's response once the probe image is showing&#10; opacityImage1 = 0 #hide the probe image&#10; time1 = mainTimer.getTime() - TimeAbs #get the response time since the probe image appeared&#10; resp1 = keys[0] #store the key that was pressed&#10; keys = []&#10; event.clearEvents()&#10; printNow = 1 #start the conditional for writing out data to the data file&#10;&#10; if printNow == 1:&#10; printNow = 0 #stop printing after we do it once&#10; thisExp.addData('probe_appeared', TimeAbs) #log the time that the PC probe appeared&#10; thisExp.addData('time_since_last_probe', TimeSinceLast) #log time since last probe. Should be time since start of experiment if this is the first probe&#10; thisExp.addData('response_delay', time1) #log delay from probe appearing to response key being pressed&#10; thisExp.addData('probe_key_response', resp1) #log the key response to the probe&#10; thisExp.addData('condition', currCondition) #save the current condition&#10; thisExp.nextEntry() #if we do not move to the next line in the data file, then any other probes that occur before the end of this routine will overwrite our previous probe data&#10; probeTimer.reset(0)&#10; time1=0 #reset our time and response variables&#10; time2=0&#10; resp1=0&#10; resp2=0&#10; myCount = myCount + 1&#10; &#10;firstLoop = False #end of the first frame loop so this is no longer true" valType="extendedCode" updates="constant" name="Each Frame"/>
<Param val="if ((currCondition === "SC")) {&#10; if ((keypress.keys === "right")) {&#10; continueRoutine = false;&#10; }&#10; if (((keypress.keys === "z") && (timeThru === 0))) {&#10; opacityImage2 = 1;&#10; TimeAbs = mainTimer.getTime();&#10; TimeSinceLast = probeTimer.getTime();&#10; timeThru = 1;&#10; psychoJS.eventManager.clearEvents();&#10; }&#10; if (((opacityImage2 === 1) && ((keypress.keys === "2") || (keypress.keys === "3")))) {&#10; opacityImage2 = 0;&#10; time2 = (mainTimer.getTime() - TimeAbs);&#10; resp2 = keypress.keys;&#10; psychoJS.eventManager.clearEvents();&#10; printNow = 1;&#10; opacityRestart = 1;&#10; }&#10; if ((printNow === 1)) {&#10; probeTimer.reset(0);&#10; time1 = 0;&#10; time2 = 0;&#10; resp1 = 0;&#10; resp2 = 0;&#10; printNow = 0;&#10; }&#10; if (((opacityRestart === 1) && (probeTimer.getTime() >= 1))) {&#10; opacityRestart = 0;&#10; timeThru = 0;&#10; }&#10;}&#10;if ((currCondition === "PC")) {&#10; if ((keypress.keys === "right")) {&#10; continueRoutine = false;&#10; }&#10; if (((probeTimer.getTime() >= probe[myCount]) && (timeThru === 0))) {&#10; opacityImage1 = 1;&#10; TimeAbs = mainTimer.getTime();&#10; timeThru = 1;&#10; isPaused = 1;&#10; }&#10; if (((opacityImage1 === 1) && (keypress.keys === "1"))) {&#10; opacityImage1 = 0;&#10; opacityImage2 = 1;&#10; time1 = (mainTimer.getTime() - TimeAbs);&#10; resp1 = keypress.keys;&#10; psychoJS.eventManager.clearEvents();&#10; }&#10; if (((opacityImage1 === 1) && (keypress.keys === "0"))) {&#10; opacityImage1 = 0;&#10; time1 = (mainTimer.getTime() - TimeAbs);&#10; resp1 = keypress.keys;&#10; psychoJS.eventManager.clearEvents();&#10; printX = 1;&#10; printNow = 1;&#10; opacityRestart = 1;&#10; }&#10; if (((opacityImage2 === 1) && ((keypress.keys === "3") || (keypress.keys === "2")))) {&#10; opacityImage2 = 0;&#10; time2 = ((mainTimer.getTime() - time1) - TimeAbs);&#10; resp2 = keypress.keys;&#10; psychoJS.eventManager.clearEvents();&#10; printX = 1;&#10; printNow = 1;&#10; opacityRestart = 1;&#10; }&#10; if (((printNow === 1) && (printX === 1))) {&#10; printNow = 0;&#10; printX = 0;&#10; probeTimer.reset(0);&#10; time1 = 0;&#10; time2 = 0;&#10; resp1 = 0;&#10; resp2 = 0;&#10; myCount = (myCount + 1);&#10; }&#10; if (((opacityRestart === 1) && (probeTimer.getTime() >= 1))) {&#10; printNow = 0;&#10; opacityRestart = 0;&#10; isPaused = 0;&#10; timeThru = 0;&#10; }&#10;}&#10;" valType="extendedCode" updates="constant" name="Each JS Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="End Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="End Routine"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="code_7" valType="code" updates="None" name="name"/>
</CodeComponent>
<ImageComponent name="EinsteinIm">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="$chEin" valType="file" updates="set every repeat" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="" valType="str" updates="constant" name="mask"/>
<Param val="EinsteinIm" valType="code" updates="None" name="name"/>
<Param val="1" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(0.85, 0.85)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="num" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<ImageComponent name="PCImage">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="str" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="images\PC_v2.png" valType="str" updates="constant" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="None" valType="str" updates="constant" name="mask"/>
<Param val="PCImage" valType="code" updates="None" name="name"/>
<Param val="$opacityImage1" valType="code" updates="set every frame" name="opacity"/>
<Param val="0" valType="code" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(1, 0.85)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="code" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<ImageComponent name="SCImage">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="str" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="images\SC_v2.png" valType="str" updates="constant" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="None" valType="str" updates="constant" name="mask"/>
<Param val="SCImage" valType="code" updates="None" name="name"/>
<Param val="$opacityImage2" valType="code" updates="set every frame" name="opacity"/>
<Param val="0" valType="code" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(1, 0.85)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="code" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<KeyboardComponent name="PracticeTrails_key_resp">
<Param val="'space'," valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="True" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="PracticeTrails_key_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="last key" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="True" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
</Routine>
<Routine name="MW_def">
<ImageComponent name="MWdefInstr">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="$chInstrSlide" valType="file" updates="set every repeat" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="" valType="str" updates="constant" name="mask"/>
<Param val="MWdefInstr" valType="code" updates="None" name="name"/>
<Param val="" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(1, 0.8)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="num" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<KeyboardComponent name="MWdefInstr_key_resp">
<Param val="'space'," valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="False" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="True" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="MWdefInstr_key_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="nothing" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="False" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
</Routine>
<Routine name="Debrief"/>
<Routine name="LaunchPages">
<CodeComponent name="code_6">
<Param val="" valType="extendedCode" updates="constant" name="Before Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Before JS Experiment"/>
<Param val="#create a variable called probeMessage. We will use this variable to tell psychopy what text to display&#10;if currCondition == "PC":&#10; #if we're in the PC condition then show the PC instructions&#10; probeMessage = "Remember, when the probe appears on screen: \n Press '1' if you were mind wandering (MW) immediately before the probe appeared, or '0' if you were not MW. \n When prompted, press 'i' if your MW was intentional (on purpose), or 'u' if it was unintentional (just happened on its own). \n When prompted again, press 'y' for yes, your MW was task-related, or 'n' for no, it was not task-related."&#10; stimFile = "lifePages_PC.csv"&#10;elif currCondition == "SC":&#10; #if we're in the SC condition then show the SC instructions&#10; probeMessage = "Remember: Press '1' any time you catch yourself mind wandering (MW). \n When prompted, press 'i' if your MW was intentional (on purpose), or 'u' if it was unintentional (just happened on its own). \n When prompted again, press 'y' for yes, your MW was task-related, or 'n' for no, it was not task-related"&#10; stimFile = "lifePages_SC.csv"" valType="extendedCode" updates="constant" name="Begin Experiment"/>
<Param val="if ((currCondition === "PC")) {&#10; probeMessage = "Remember, when the probe appears on screen: \n Press '1' if you were mind wandering (MW) immediately before the probe appeared, or '0' if you were not MW. \n When prompted, press 'i' if your MW was intentional (on purpose), or 'u' if it was unintentional (just happened on its own). \n When prompted again, press 'y' for yes, your MW was task-related, or 'n' for no, it was not task-related.";&#10; stimFile = "lifePages_PC.csv";&#10;} else {&#10; if ((currCondition === "SC")) {&#10; probeMessage = "Remember: Press '1' any time you catch yourself mind wandering (MW). \n When prompted, press 'i' if your MW was intentional (on purpose), or 'u' if it was unintentional (just happened on its own). \n When prompted again, press 'y' for yes, your MW was task-related, or 'n' for no, it was not task-related";&#10; stimFile = "lifePages_SC.csv";&#10; }&#10;}&#10;" valType="extendedCode" updates="constant" name="Begin JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin Routine"/>
<Param val="Auto->JS" valType="str" updates="None" name="Code Type"/>
<Param val="" valType="extendedCode" updates="constant" name="Each Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="Each JS Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="End Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="End Routine"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="code_6" valType="code" updates="None" name="name"/>
</CodeComponent>
</Routine>
<Routine name="DemographicQs">
<ImageComponent name="DemoQs">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="$chDemoQs" valType="file" updates="set every repeat" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="" valType="str" updates="constant" name="mask"/>
<Param val="DemoQs" valType="code" updates="None" name="name"/>
<Param val="" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(1, 0.7)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="num" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<KeyboardComponent name="DemographicQs_resp">
<Param val="'1','2','3','4','5','6','7'," valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="True" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="True" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="DemographicQs_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="last key" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="True" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
</Routine>
<Routine name="Welcome">
<TextComponent name="Welcome_text">
<Param val="white" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="None" valType="str" updates="constant" name="flip"/>
<Param val="Open Sans" valType="str" updates="constant" name="font"/>
<Param val="LTR" valType="str" updates="None" name="languageStyle"/>
<Param val="0.05" valType="num" updates="constant" name="letterHeight"/>
<Param val="Welcome_text" valType="code" updates="None" name="name"/>
<Param val="" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="Welcome to the experiment!&#10;&#10;Before we begin, please complete the following multiple choice questions by using the number keys to enter your answers.&#10;&#10;&#10;(Press the spacebar to continue)" valType="str" updates="constant" name="text"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
<Param val="" valType="num" updates="constant" name="wrapWidth"/>
</TextComponent>
<KeyboardComponent name="Welcome_text_resp">
<Param val="'space'" valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="True" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="True" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="Welcome_text_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="last key" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="True" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
</Routine>
<Routine name="IntroPractice">
<CodeComponent name="code_4">
<Param val="" valType="extendedCode" updates="constant" name="Before Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Before JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin Experiment"/>
<Param val="if ((currCondition === "PC")) {&#10; probeMessage = "Remember, when the probe appears on screen: \n Press '1' if you were mind wandering (MW) immediately before the probe appeared, or '0' if you were not MW. \n When prompted, press 'i' if your MW was intentional (on purpose), or 'u' if it was unintentional (just happened on its own). \n When prompted again, press 'y' for yes, your MW was task-related, or 'n' for no, it was not task-related.";&#10;} else {&#10; if ((currCondition === "SC")) {&#10; probeMessage = "Remember: Press '1' any time you catch yourself mind wandering (MW). \n When prompted, press 'i' if your MW was intentional (on purpose), or 'u' if it was unintentional (just happened on its own). \n When prompted again, press 'y' for yes, your MW was task-related, or 'n' for no, it was not task-related";&#10; }&#10;}&#10;if ((currConditionP === "Life")) {&#10; stimFile = "LifePages.csv";&#10;} else {&#10; if ((currConditionP === "Tropo")) {&#10; stimFile = "TropoPages.csv";&#10; }&#10;}&#10;" valType="extendedCode" updates="constant" name="Begin JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin Routine"/>
<Param val="Py" valType="str" updates="None" name="Code Type"/>
<Param val="" valType="extendedCode" updates="constant" name="Each Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="Each JS Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="End Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="End Routine"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="code_4" valType="code" updates="None" name="name"/>
</CodeComponent>
</Routine>
<Routine name="IntroExp">
<TextComponent name="text">
<Param val="white" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="None" valType="str" updates="constant" name="flip"/>
<Param val="Open Sans" valType="str" updates="constant" name="font"/>
<Param val="LTR" valType="str" updates="None" name="languageStyle"/>
<Param val="0.05" valType="num" updates="constant" name="letterHeight"/>
<Param val="text" valType="code" updates="None" name="name"/>
<Param val="1" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="$probeMessage" valType="str" updates="constant" name="text"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
<Param val="" valType="num" updates="constant" name="wrapWidth"/>
</TextComponent>
<KeyboardComponent name="IntroExp_key_resp">
<Param val="'space'" valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="True" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="True" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="IntroExp_key_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="last key" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="True" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
</Routine>
<Routine name="AQintro">
<TextComponent name="text_3">
<Param val="white" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="None" valType="str" updates="constant" name="flip"/>
<Param val="Open Sans" valType="str" updates="constant" name="font"/>
<Param val="LTR" valType="str" updates="None" name="languageStyle"/>
<Param val="0.05" valType="num" updates="constant" name="letterHeight"/>
<Param val="text_3" valType="code" updates="None" name="name"/>
<Param val="" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="Please answer the following questions.&#10;&#10;&#10;&#10;(Press the spacebar to continue.)" valType="str" updates="constant" name="text"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
<Param val="" valType="num" updates="constant" name="wrapWidth"/>
</TextComponent>
<KeyboardComponent name="AQintro_key_resp">
<Param val="'space'" valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="True" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="True" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="AQintro_key_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="last key" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="True" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
</Routine>
<Routine name="Reading">
<CodeComponent name="code_3">
<Param val="" valType="extendedCode" updates="constant" name="Before Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Before JS Experiment"/>
<Param val="##ONE TIME INITIALIZATION START&#10;#setting a bunch of defaults here (we will reset these in every practice or reading loop)&#10;opacityImage1 = 0 #PC image opacity (by default our probe and intentionality images are hidden)&#10;opacityImage2 = 0 #SC image opacity&#10;time1=0 #variables for recording response time data&#10;time2=0&#10;resp1=0 #variables for recording key press data&#10;resp2=0&#10;printNow = 0 #used to trigger data writing to output file&#10;keys = "" #stores keypress values &#10;#these three variables are used to start our timers at the right spot and avoid some edge cases&#10;firstLoop2 = True&#10;firstRoutine2 = True&#10;timerStarted2 = False&#10;&#10;&#10;#start two clocks&#10;mainTimer2 = core.Clock() # this one just runs for the whole PracticeTrial loop&#10;probeTimer2 = core.Clock() # this one stops and restarts every time one of our probe/intentionality images pops up&#10;&#10;myCount = 1 #this counts up and tells which value from the probe list we should use&#10;&#10;# import some stuff just in case&#10;import random, copy&#10;from random import randint&#10;from decimal import *&#10;import csv&#10;from numpy import *&#10;from psychopy import core, event&#10;event.getKeys() #clear the keyboard buffer just in case they recently pressed a relevant key&#10;##ONE TIME INITIALIZATION END&#10;&#10;#Counter for iterating through our probe2 list&#10;myCount2 = 1&#10;&#10;event.clearEvents() #clear events just in case they recently pressed a relevant key&#10;&#10;# here's a list of the time in seconds between probes&#10;# change this to adjust the probes for the Reading loop&#10;probe2 = [0,91,112,74,98,113,62,92,79,76,62]&#10;# first item in probe, 0, never happens because myCount starts at 1" valType="extendedCode" updates="constant" name="Begin Experiment"/>
<Param val="import * as random from 'random';&#10;import * as copy from 'copy';&#10;import {randint} from 'random';&#10;import {*} from 'decimal';&#10;import * as csv from 'csv';&#10;import {*} from 'numpy';&#10;import {core} from 'psychopy';&#10;var isPaused, mainTimer, myCount, opacityImage1, opacityImage2, opacityRestart, printNow, printX, probe, probeTimer, resp1, resp2, time1, time2, timeThru;&#10;opacityImage1 = 0;&#10;opacityImage2 = 0;&#10;opacityRestart = 0;&#10;isPaused = 0;&#10;time1 = 0;&#10;time2 = 0;&#10;resp1 = 0;&#10;resp2 = 0;&#10;timeThru = 0;&#10;printNow = 0;&#10;printX = 0;&#10;mainTimer = new core.Clock();&#10;probeTimer = new core.Clock();&#10;myCount = 1;&#10;probe = [0, 8, 10, 15];&#10;" valType="extendedCode" updates="constant" name="Begin JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin JS Routine"/>
<Param val="#Reset a bunch of our defaults at the start of this loop. We only do this once.&#10;#This stops the values from our previous practice loop from affecting this reading loop.&#10;if firstRoutine2:&#10; firstRoutine2 = False&#10; mainTimer2.reset(0)&#10; probeTimer2.reset(0)&#10; timerStarted2 = True" valType="extendedCode" updates="constant" name="Begin Routine"/>
<Param val="Py" valType="str" updates="None" name="Code Type"/>
<Param val="keys = event.getKeys()&#10;&#10;if (mainTimer2.getTime() > 1080) and timerStarted2:&#10; continueRoutine = False #quit every routine once the main timer goes over 18 minutes&#10; &#10;if firstLoop2:&#10; keys = []&#10; event.clearEvents()&#10;&#10;if currCondition=='SC':&#10; if Reading_key_resp.keys == 'space':&#10; continueRoutine = False&#10; &#10; if '1' in keys:&#10; opacityImage2 = 1&#10; TimeAbs = mainTimer2.getTime()&#10; TimeSinceLast = probeTimer2.getTime()&#10; keys = []&#10; event.clearEvents()&#10;&#10; if (opacityImage2 == 1) and ('u' in keys or 'i' in keys):&#10; opacityImage2 = 0&#10; time2 = mainTimer2.getTime() - TimeAbs&#10; resp2 = keys[0]&#10; keys = []&#10; event.clearEvents()&#10; printNow = 1&#10;&#10; if printNow == 1:&#10; thisExp.addData('probe_appeared', TimeAbs) #log the time that the SC probe appeared (user pressed '1' key)&#10; thisExp.addData('time_since_last_probe', TimeSinceLast) #log time since last probe. Should be time since start of experiment if this is the first probe&#10; thisExp.addData('response_delay', time2) #log delay from probe appearing to response key being pressed&#10; thisExp.addData('probe_key_response', resp2) #log the key response to the probe&#10; thisExp.addData('condition', currCondition) #save the current condition&#10; thisExp.nextEntry() #if we do not move to the next line in the data file, then any other probes that occur before the end of this routine will overwrite our previous probe data&#10; probeTimer2.reset(0) &#10; time1=0 &#10; time2=0&#10; resp1=0&#10; resp2=0&#10; printNow = 0&#10;&#10;&#10;if currCondition=='PC':&#10; if Reading_key_resp.keys == 'space':&#10; continueRoutine = False&#10; &#10; if opacityImage1 != 1 and (len(probe2) > myCount2) and probeTimer2.getTime() >= probe2[myCount2]:&#10; opacityImage1=1&#10; TimeAbs = mainTimer2.getTime()&#10; TimeSinceLast = probeTimer2.getTime() #get the time since the last probe popped up&#10; &#10; if opacityImage1 == 1 and ('0' in keys or 'i' in keys or 'u' in keys):&#10; opacityImage1 = 0&#10; time1 = mainTimer2.getTime() - TimeAbs&#10; resp1 = keys[0]&#10; keys = []&#10; event.clearEvents()&#10; printNow = 1&#10;&#10; if printNow == 1:&#10; printNow = 0&#10; thisExp.addData('probe_appeared', TimeAbs) #log the time that the PC probe appeared&#10; thisExp.addData('time_since_last_probe', TimeSinceLast) #log time since last probe. Should be time since start of experiment if this is the first probe&#10; thisExp.addData('response_delay', time1) #log delay from probe appearing to response key being pressed&#10; thisExp.addData('probe_key_response', resp1) #log the key response to the probe&#10; thisExp.addData('condition', currCondition) #save the current condition&#10; thisExp.nextEntry() #if we do not move to the next line in the data file, then any other probes that occur before the end of this routine will overwrite our previous probe data&#10; probeTimer2.reset(0)&#10; time1=0&#10; time2=0&#10; resp1=0&#10; resp2=0&#10; myCount2 = myCount2 + 1&#10; &#10;firstLoop2 = False" valType="extendedCode" updates="constant" name="Each Frame"/>
<Param val="/* Syntax Error: Fix Python code */" valType="extendedCode" updates="constant" name="Each JS Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="End Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="End Routine"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="code_3" valType="code" updates="None" name="name"/>
</CodeComponent>
<KeyboardComponent name="Reading_key_resp">
<Param val="'space'," valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="True" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="Reading_key_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="last key" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="True" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
<ImageComponent name="imagePages">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="$ChPage" valType="file" updates="set every repeat" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="" valType="str" updates="constant" name="mask"/>
<Param val="imagePages" valType="code" updates="None" name="name"/>
<Param val="1" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(0.85, 0.85)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="num" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<ImageComponent name="PCProbe">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="images/PC_v2.png" valType="file" updates="constant" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="None" valType="str" updates="constant" name="mask"/>
<Param val="PCProbe" valType="code" updates="None" name="name"/>
<Param val="opacityImage1" valType="num" updates="set every frame" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(1, 0.85)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="num" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<ImageComponent name="SCProbe">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="str" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="images/SC_v2.png" valType="str" updates="constant" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="None" valType="str" updates="constant" name="mask"/>
<Param val="SCProbe" valType="code" updates="None" name="name"/>
<Param val="opacityImage2" valType="code" updates="set every frame" name="opacity"/>
<Param val="0" valType="code" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(1, 0.85)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="code" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
</Routine>
<Routine name="Quiz">
<ImageComponent name="QuizQuestion">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="str" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="$chQs" valType="str" updates="set every repeat" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="None" valType="str" updates="constant" name="mask"/>
<Param val="QuizQuestion" valType="code" updates="None" name="name"/>
<Param val="1" valType="code" updates="constant" name="opacity"/>
<Param val="0" valType="code" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(0.8, 0.8)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="code" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<KeyboardComponent name="Quiz_key_resp">
<Param val="'a','b','c','d'" valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="True" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="True" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="Quiz_key_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="last key" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="True" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
</Routine>
<Routine name="AgeQuestion">
<TextboxComponent name="AgeQuestion_textbox">
<Param val="center" valType="str" updates="constant" name="alignment"/>
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="True" valType="bool" updates="constant" name="autoLog"/>
<Param val="False" valType="bool" updates="constant" name="bold"/>
<Param val="None" valType="color" updates="constant" name="borderColor"/>
<Param val="2" valType="num" updates="constant" name="borderWidth"/>
<Param val="white" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="True" valType="bool" updates="constant" name="editable"/>
<Param val="None" valType="color" updates="constant" name="fillColor"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="Open Sans" valType="str" updates="constant" name="font"/>
<Param val="False" valType="bool" updates="constant" name="italic"/>
<Param val="LTR" valType="str" updates="None" name="languageStyle"/>
<Param val="0.05" valType="num" updates="constant" name="letterHeight"/>
<Param val="1.0" valType="num" updates="constant" name="lineSpacing"/>
<Param val="AgeQuestion_textbox" valType="code" updates="None" name="name"/>
<Param val="" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="0" valType="num" updates="constant" name="padding"/>
<Param val="(0, -0.15)" valType="list" updates="constant" name="pos"/>
<Param val="False" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(None, None)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="" valType="str" updates="constant" name="text"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</TextboxComponent>
<TextComponent name="text_4">
<Param val="white" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="None" valType="str" updates="constant" name="flip"/>
<Param val="Open Sans" valType="str" updates="constant" name="font"/>
<Param val="LTR" valType="str" updates="None" name="languageStyle"/>
<Param val="0.05" valType="num" updates="constant" name="letterHeight"/>
<Param val="text_4" valType="code" updates="None" name="name"/>
<Param val="" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0.2)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="Using the number keys please enter your age. Then press 'space' to continue." valType="str" updates="constant" name="text"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
<Param val="" valType="num" updates="constant" name="wrapWidth"/>
</TextComponent>
<KeyboardComponent name="Age_resp">
<Param val="'space'" valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="False" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="True" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="Age_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="all keys" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="True" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
</Routine>
<Routine name="blank">
<TextComponent name="textInterval">
<Param val="white" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="None" valType="str" updates="constant" name="flip"/>
<Param val="Open Sans" valType="str" updates="constant" name="font"/>
<Param val="LTR" valType="str" updates="None" name="languageStyle"/>
<Param val="0.1" valType="num" updates="constant" name="letterHeight"/>
<Param val="textInterval" valType="code" updates="None" name="name"/>
<Param val="" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="1" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="" valType="str" updates="constant" name="text"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
<Param val="" valType="num" updates="constant" name="wrapWidth"/>
</TextComponent>
</Routine>
<Routine name="setInstrFile2">
<CodeComponent name="code_5">
<Param val="" valType="extendedCode" updates="constant" name="Before Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Before JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin JS Experiment"/>
<Param val="if ((currCondition === "PC")) {&#10; MyInstrFile = "InstrFile/Instr_PC.csv";&#10;} else {&#10; if ((currCondition === "SC")) {&#10; MyInstrFile = "InstrFile/Instr_SC.csv";&#10; }&#10;}&#10;" valType="extendedCode" updates="constant" name="Begin JS Routine"/>
<Param val="#TELLING PSYCHOPY WHICH INSTRUCTION SLIDES TO DISPLAY:&#10;#We've done the first runthrough so now we're switching conditions&#10;if currCondition == "PC":&#10; currCondition = "SC"&#10;elif currCondition == "SC":&#10; currCondition = "PC"&#10;&#10;if currCondition == "PC":&#10; #if we're in the PC condition then show the PC instructions&#10; InstrFile = "InstrFile/Instr_PC.csv"&#10;elif currCondition == "SC":&#10; #if we're in the SC condition then show the SC instructions&#10; InstrFile = "InstrFile/Instr_SC.csv"&#10; &#10;#CONFIRM INSTRUCTION SLIDES WILL BE SHOWN IN ORDER ON CSV FILE" valType="extendedCode" updates="constant" name="Begin Routine"/>
<Param val="Py" valType="str" updates="None" name="Code Type"/>
<Param val="" valType="extendedCode" updates="constant" name="Each Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="Each JS Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="End Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="End Routine"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="code_5" valType="code" updates="None" name="name"/>
</CodeComponent>
</Routine>
<Routine name="MW_def2">
<ImageComponent name="MWdef_image">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="$chInstrSlide" valType="file" updates="set every repeat" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="" valType="str" updates="constant" name="mask"/>
<Param val="MWdef_image" valType="code" updates="None" name="name"/>
<Param val="" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(1, 0.8)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="num" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<KeyboardComponent name="MW_def2_key_resp">
<Param val="'space'" valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="True" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="True" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="MW_def2_key_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="last key" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="True" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
</Routine>
<Routine name="MWdefinitions2"/>
<Routine name="IntroPractice2">
<CodeComponent name="code_9">
<Param val="" valType="extendedCode" updates="constant" name="Before Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Before JS Experiment"/>
<Param val="#create a variable called probeMessage. We will use this variable to tell psychopy what text to display&#10;if currCondition == "PC":&#10; #if we're in the PC condition then show the PC instructions&#10; probeMessage = "Remember, when the probe appears on screen: \n Press '1' if you were mind wandering (MW) immediately before the probe appeared, or '0' if you were not MW. \n When prompted, press 'i' if your MW was intentional (on purpose), or 'u' if it was unintentional (just happened on its own). \n When prompted again, press 'y' for yes, your MW was task-related, or 'n' for no, it was not task-related." &#10;elif currCondition == "SC":&#10; #if we're in the SC condition then show the SC instructions&#10; probeMessage = "Remember: Press '1' any time you catch yourself mind wandering (MW). \n When prompted, press 'i' if your MW was intentional (on purpose), or 'u' if it was unintentional (just happened on its own). \n When prompted again, press 'y' for yes, your MW was task-related, or 'n' for no, it was not task-related"&#10;&#10;#SWITCH CONDITION PAGES BECAUSE WE'RE ON TO THE SECOND SET OF TRIALS&#10;if currConditionP == "Life":&#10; currConditionP = "Tropo"&#10;elif currConditionP == "Tropo":&#10; currConditionP = "Life"&#10;&#10;if currConditionP == "Life":&#10; #if we're in the Life condition then show LifePages&#10; stimFile = "LifePages.csv"&#10; quizFile = "lifeQs.csv"&#10;elif currConditionP == "Tropo":&#10; #if we're in the Tropo condition then show TropoPages&#10; stimFile = "TropoPages.csv"&#10; quizFile = "tropoQs.csv"&#10;&#10;#remember, once we've set the probeMessage variable we need to tell psychopy to show it as text&#10;#double click on the 'text' object and set the 'text' field to '$probeMessage'&#10;#this tells psychopy to display whatever the value of the probeMessage variable is" valType="extendedCode" updates="constant" name="Begin Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin Routine"/>
<Param val="Py" valType="str" updates="None" name="Code Type"/>
<Param val="" valType="extendedCode" updates="constant" name="Each Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="Each JS Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="End Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="End Routine"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="code_9" valType="code" updates="None" name="name"/>
</CodeComponent>
</Routine>
<Routine name="PracticeTrials2">
<CodeComponent name="code_10">
<Param val="" valType="extendedCode" updates="constant" name="Before Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Before JS Experiment"/>
<Param val="firstLoop3 = True&#10;firstRoutine3 = True&#10;timerStarted3 = False&#10;&#10;mainTimer3 = core.Clock() &#10;probeTimer3 = core.Clock()&#10;&#10;myCount3 = 1&#10;&#10;event.getKeys()&#10;probe3 = [0, 15, 15, 15]&#10;# first item in probe, 0, never happens because myCount starts at 1" valType="extendedCode" updates="constant" name="Begin Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="Begin JS Routine"/>
<Param val="if firstRoutine3:&#10; opacityImage1 = 0&#10; opacityImage2 = 0&#10; time1=0&#10; time2=0&#10; resp1=0&#10; resp2=0&#10; printNow = 0&#10; keys = ""&#10; firstRoutine3 = False&#10; mainTimer3.reset(0)&#10; probeTimer3.reset(0)&#10; timerStarted3 = True" valType="extendedCode" updates="constant" name="Begin Routine"/>
<Param val="Py" valType="str" updates="None" name="Code Type"/>
<Param val="keys = event.getKeys()&#10;&#10;if (mainTimer3.getTime() > 180) and timerStarted3:&#10; continueRoutine = False&#10; &#10;if firstLoop3:&#10; keys = []&#10; event.clearEvents()&#10; &#10;#this is the self-caught condition, but because this is the second run we enter it when condition is set to 'PC'&#10;if currCondition=='SC':&#10; &#10; if PracticeTrials2_key_resp.keys == 'space':&#10; continueRoutine = False&#10; &#10; if '1' in keys: &#10; opacityImage2 = 1 &#10; TimeAbs = mainTimer3.getTime() &#10; TimeSinceLast = probeTimer3.getTime()&#10; keys = []&#10; event.clearEvents()&#10;&#10; if (opacityImage2 == 1) and ('u' in keys or 'i' in keys):&#10; opacityImage2 = 0&#10; time2 = mainTimer3.getTime() - TimeAbs&#10; resp2 = keys[0]&#10; keys = []&#10; event.clearEvents()&#10; printNow = 1&#10;&#10; if printNow == 1:&#10; thisExp.addData('probe_appeared', TimeAbs) #log the time that the SC probe appeared (user pressed '1' key)&#10; thisExp.addData('time_since_last_probe', TimeSinceLast) #log time since last probe. Should be time since start of experiment if this is the first probe&#10; thisExp.addData('response_delay', time2) #log delay from probe appearing to response key being pressed&#10; thisExp.addData('probe_key_response', resp2) #log the key response to the probe&#10; thisExp.addData('condition', currCondition) #save the current condition&#10; thisExp.nextEntry() #if we do not move to the next line in the data file, then any other probes that occur before the end of this routine will overwrite our previous probe data&#10; probeTimer3.reset(0) #reset the probe timer until the next time they self-report&#10; time1=0 #reset our time and response variables&#10; time2=0&#10; resp1=0&#10; resp2=0&#10; printNow = 0&#10;&#10;#this is the probe-caught condition but because this is the second run we enter here when condition is set to SC&#10;if currCondition=='PC':&#10; &#10; if PracticeTrials2_key_resp.keys == 'space':&#10; continueRoutine = False&#10; &#10; if opacityImage1 != 1 and (len(probe3) > myCount3) and probeTimer3.getTime() >= probe[myCount3]:&#10; opacityImage1=1&#10; TimeAbs = mainTimer3.getTime()&#10; TimeSinceLast = probeTimer3.getTime() #get the time since the last probe went away&#10; &#10; if opacityImage1 == 1 and ('0' in keys or 'i' in keys or 'u' in keys):&#10; opacityImage1 = 0&#10; time1 = mainTimer3.getTime() - TimeAbs&#10; resp1 = keys[0]&#10; keys = []&#10; event.clearEvents()&#10; printNow = 1&#10;&#10; if printNow == 1:&#10; printNow = 0&#10; thisExp.addData('probe_appeared', TimeAbs) #log the time that the PC probe appeared&#10; thisExp.addData('time_since_last_probe', TimeSinceLast) #log time since last probe. Should be time since start of experiment if this is the first probe&#10; thisExp.addData('response_delay', time1) #log delay from probe appearing to response key being pressed&#10; thisExp.addData('probe_key_response', resp1) #log the key response to the probe&#10; thisExp.addData('condition', currCondition) #save the current condition&#10; thisExp.nextEntry() #if we do not move to the next line in the data file, then any other probes that occur before the end of this routine will overwrite our previous probe data&#10; probeTimer3.reset(0)&#10; time1=0&#10; time2=0&#10; resp1=0&#10; resp2=0&#10; myCount3 = myCount3 + 1&#10; &#10;firstLoop3 = False" valType="extendedCode" updates="constant" name="Each Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="Each JS Frame"/>
<Param val="" valType="extendedCode" updates="constant" name="End Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Experiment"/>
<Param val="" valType="extendedCode" updates="constant" name="End JS Routine"/>
<Param val="" valType="extendedCode" updates="constant" name="End Routine"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="code_10" valType="code" updates="None" name="name"/>
</CodeComponent>
<ImageComponent name="EinsteinImage">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="$chEin" valType="file" updates="set every repeat" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="" valType="str" updates="constant" name="mask"/>
<Param val="EinsteinImage" valType="code" updates="None" name="name"/>
<Param val="" valType="num" updates="constant" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(0.85, 0.85)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="num" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<ImageComponent name="PCImage2">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="images\PC_v2.png" valType="file" updates="constant" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="" valType="str" updates="constant" name="mask"/>
<Param val="PCImage2" valType="code" updates="None" name="name"/>
<Param val="opacityImage1" valType="num" updates="set every frame" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(1, 0.85)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="num" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<ImageComponent name="SCImage2">
<Param val="center" valType="str" updates="constant" name="anchor"/>
<Param val="$[1,1,1]" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>
<Param val="1" valType="num" updates="constant" name="contrast"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="flipHoriz"/>
<Param val="False" valType="bool" updates="constant" name="flipVert"/>
<Param val="images\SC_v2.png" valType="file" updates="constant" name="image"/>
<Param val="linear" valType="str" updates="constant" name="interpolate"/>
<Param val="" valType="str" updates="constant" name="mask"/>
<Param val="SCImage2" valType="code" updates="None" name="name"/>
<Param val="opacityImage2" valType="num" updates="set every frame" name="opacity"/>
<Param val="0" valType="num" updates="constant" name="ori"/>
<Param val="(0, 0)" valType="list" updates="constant" name="pos"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="(1, 0.85)" valType="list" updates="constant" name="size"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="True" valType="bool" updates="None" name="syncScreenRefresh"/>
<Param val="128" valType="num" updates="constant" name="texture resolution"/>
<Param val="from exp settings" valType="str" updates="None" name="units"/>
</ImageComponent>
<KeyboardComponent name="PracticeTrials2_key_resp">
<Param val="'space'" valType="list" updates="constant" name="allowedKeys"/>
<Param val="" valType="str" updates="constant" name="correctAns"/>
<Param val="False" valType="bool" updates="None" name="disabled"/>
<Param val="True" valType="bool" updates="constant" name="discard previous"/>
<Param val="" valType="code" updates="None" name="durationEstim"/>
<Param val="False" valType="bool" updates="constant" name="forceEndRoutine"/>
<Param val="PracticeTrials2_key_resp" valType="code" updates="None" name="name"/>
<Param val="True" valType="bool" updates="None" name="saveStartStop"/>
<Param val="" valType="code" updates="None" name="startEstim"/>
<Param val="time (s)" valType="str" updates="None" name="startType"/>
<Param val="0.0" valType="code" updates="None" name="startVal"/>
<Param val="duration (s)" valType="str" updates="None" name="stopType"/>
<Param val="" valType="code" updates="constant" name="stopVal"/>
<Param val="last key" valType="str" updates="constant" name="store"/>
<Param val="False" valType="bool" updates="constant" name="storeCorrect"/>
<Param val="True" valType="bool" updates="constant" name="syncScreenRefresh"/>
</KeyboardComponent>
</Routine>
<Routine name="IntroExp2">
<TextComponent name="probe_message">
<Param val="white" valType="color" updates="constant" name="color"/>
<Param val="rgb" valType="str" updates="constant" name="colorSpace"/>