forked from aes-186/Race_IAT
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRace_IAT.psyexp
633 lines (633 loc) · 58.3 KB
/
Race_IAT.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
<?xml version="1.0" ?>
<PsychoPy2experiment encoding="utf-8" version="2021.2.3">
<Settings>
<Param name="Audio latency priority" updates="None" val="use prefs" valType="str"/>
<Param name="Audio lib" updates="None" val="use prefs" valType="str"/>
<Param name="Completed URL" updates="None" val="" valType="str"/>
<Param name="Data file delimiter" updates="None" val="auto" valType="str"/>
<Param name="Data filename" updates="None" val="'data/%s_%s_%s' %(expInfo['participant'], expName, expInfo['date'])" valType="code"/>
<Param name="Enable Escape" updates="None" val="True" valType="bool"/>
<Param name="Experiment info" updates="None" val="{u'gender': u'', u'age': u'', u'participant': u''}" valType="code"/>
<Param name="Force stereo" updates="None" val="True" valType="bool"/>
<Param name="Full-screen window" updates="None" val="True" valType="bool"/>
<Param name="HTML path" updates="None" val="html" valType="str"/>
<Param name="Incomplete URL" updates="None" val="" valType="str"/>
<Param name="JS libs" updates="None" val="packaged" valType="str"/>
<Param name="Monitor" updates="None" val="testMonitor" valType="str"/>
<Param name="Resources" updates="None" val="[]" valType="list"/>
<Param name="Save csv file" updates="None" val="False" valType="bool"/>
<Param name="Save excel file" updates="None" val="False" valType="bool"/>
<Param name="Save hdf5 file" updates="None" val="False" valType="bool"/>
<Param name="Save log file" updates="None" val="True" valType="bool"/>
<Param name="Save psydat file" updates="None" val="True" valType="bool"/>
<Param name="Save wide csv file" updates="None" val="True" valType="bool"/>
<Param name="Screen" updates="None" val="1" valType="num"/>
<Param name="Show info dlg" updates="None" val="True" valType="bool"/>
<Param name="Show mouse" updates="None" val="False" valType="bool"/>
<Param name="Units" updates="None" val="use prefs" valType="str"/>
<Param name="Use version" updates="None" val="" valType="str"/>
<Param name="Window size (pixels)" updates="None" val="[1366, 768]" valType="code"/>
<Param name="blendMode" updates="None" val="avg" valType="str"/>
<Param name="color" updates="None" val="$[-1.000,-1.000,-1.000]" valType="str"/>
<Param name="colorSpace" updates="None" val="rgb" valType="str"/>
<Param name="elAddress" updates="None" val="100.1.1.1" valType="str"/>
<Param name="elDataFiltering" updates="None" val="FILTER_LEVEL_2" valType="str"/>
<Param name="elLiveFiltering" updates="None" val="FILTER_LEVEL_OFF" valType="str"/>
<Param name="elModel" updates="None" val="EYELINK 1000 DESKTOP" valType="str"/>
<Param name="elPupilAlgorithm" updates="None" val="ELLIPSE_FIT" valType="str"/>
<Param name="elPupilMeasure" updates="None" val="PUPIL_AREA" valType="str"/>
<Param name="elSampleRate" updates="None" val="1000" valType="num"/>
<Param name="elSimMode" updates="None" val="False" valType="bool"/>
<Param name="elTrackEyes" updates="None" val="RIGHT_EYE" valType="str"/>
<Param name="elTrackingMode" updates="None" val="PUPIL_CR_TRACKING" valType="str"/>
<Param name="expName" updates="None" val="IAT" valType="str"/>
<Param name="exportHTML" updates="None" val="on Sync" valType="str"/>
<Param name="eyetracker" updates="None" val="None" valType="str"/>
<Param name="gpAddress" updates="None" val="127.0.0.1" valType="str"/>
<Param name="gpPort" updates="None" val="4242" valType="num"/>
<Param name="logging level" updates="None" val="warning" valType="code"/>
<Param name="mgBlink" updates="None" val="MIDDLE_BUTTON" valType="list"/>
<Param name="mgMove" updates="None" val="CONTINUOUS" valType="str"/>
<Param name="mgSaccade" updates="None" val="0.5" valType="num"/>
<Param name="tbLicenseFile" updates="None" val="" valType="str"/>
<Param name="tbModel" updates="None" val="" valType="str"/>
<Param name="tbSampleRate" updates="None" val="60" valType="num"/>
<Param name="tbSerialNo" updates="None" val="" valType="str"/>
</Settings>
<Routines>
<Routine name="trial">
<CodeComponent name="trials_code">
<Param name="Before Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Before JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin Experiment" updates="constant" val="#declare accuracy feedback message variable&#10;msg=""&#10;&#10;# debugging (Anzu)&#10;image_stimulus = """ valType="extendedCode"/>
<Param name="Begin JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin JS Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin Routine" updates="constant" val="# choose a random exemplar from the appropriate trial type list&#10;if trial_type == 1:&#10; text_stimulus = text_trial_type_1_trials.pop()&#10; image_stimulus = img_trial_type_1_trials.pop()&#10;elif trial_type == 2:&#10; text_stimulus = text_trial_type_2_trials.pop()&#10; image_stimulus = img_trial_type_2_trials.pop()&#10;elif trial_type == 3:&#10; text_stimulus = text_trial_type_3_trials.pop()&#10; image_stimulus = img_trial_type_3_trials.pop()&#10;elif trial_type == 4:&#10; text_stimulus = text_trial_type_4_trials.pop()&#10; image_stimulus = img_trial_type_4_trials.pop()&#10;&#10;# set stimulus colors based on trial type&#10;if trial_type == 1 or trial_type == 2:&#10; stimulusColor = [1, 1, 1]&#10;elif trial_type >2:&#10; stimulusColor = [-1, 1, -1]&#10;&#10;# set required and feedback responses&#10;# attributes are invariate across blocks so can be determined based on trial type only&#10;if trial_type == 3: #pos&#10; requiredAllowed = "i"&#10; requiredCorrect = "i"&#10; feedbackAllowed = "e"&#10; feedbackCorrect = "e"&#10;elif trial_type == 4: #neg&#10; requiredAllowed = "e"&#10; requiredCorrect = "e"&#10; feedbackAllowed = "i"&#10; feedbackCorrect = "i"&#10;# categories depend on block order, current block and trial type&#10;&#10;if block_order == 1: &#10; if blocks.thisN <= 3:&#10; if trial_type == 1: #flowers&#10; requiredAllowed = "i"&#10; requiredCorrect = "i"&#10; feedbackAllowed = "e"&#10; feedbackCorrect = "e"&#10; elif trial_type == 2: #insects&#10; requiredAllowed = "e"&#10; requiredCorrect = "e"&#10; feedbackAllowed = "i"&#10; feedbackCorrect = "i"&#10; elif blocks.thisN >= 3:&#10; if trial_type == 1: #flowers&#10; requiredAllowed = "e"&#10; requiredCorrect = "e"&#10; feedbackAllowed = "i"&#10; feedbackCorrect = "i"&#10; elif trial_type == 2: #insects&#10; requiredAllowed = "i"&#10; requiredCorrect = "i"&#10; feedbackAllowed = "e"&#10; feedbackCorrect = "e"&#10; &#10;elif block_order == 2: &#10; if blocks.thisN <= 3:&#10; if trial_type == 1: #flowers&#10; requiredAllowed = "e"&#10; requiredCorrect = "e"&#10; feedbackAllowed = "i"&#10; feedbackCorrect = "i"&#10; elif trial_type == 2: #insects&#10; requiredAllowed = "i"&#10; requiredCorrect = "i"&#10; feedbackAllowed = "e"&#10; feedbackCorrect = "e"&#10; elif blocks.thisN >= 3:&#10; if trial_type == 1: #flowers&#10; requiredAllowed = "i"&#10; requiredCorrect = "i"&#10; feedbackAllowed = "e"&#10; feedbackCorrect = "e"&#10; elif trial_type == 2: #insects&#10; requiredAllowed = "e"&#10; requiredCorrect = "e"&#10; feedbackAllowed = "i"&#10; feedbackCorrect = "i"" valType="extendedCode"/>
<Param name="Code Type" updates="None" val="Py" valType="str"/>
<Param name="Each Frame" updates="constant" val="if len(feedbackResponse.keys)<1:&#10; msg=""&#10;else:&#10; msg="X"" valType="extendedCode"/>
<Param name="Each JS Frame" updates="constant" val="" valType="extendedCode"/>
<Param name="End Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="End JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="End JS Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="End Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="name" updates="None" val="trials_code" valType="code"/>
</CodeComponent>
<ImageComponent name="stimulusImageBox">
<Param name="color" updates="constant" val="$[1,1,1]" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flipHoriz" updates="constant" val="False" valType="bool"/>
<Param name="flipVert" updates="constant" val="False" valType="bool"/>
<Param name="image" updates="set every repeat" val="$image_stimulus" valType="str"/>
<Param name="interpolate" updates="constant" val="linear" valType="str"/>
<Param name="mask" updates="constant" val="None" valType="str"/>
<Param name="name" updates="None" val="stimulusImageBox" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[0, 0]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="size" updates="constant" val=".6" valType="code"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.3" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="texture resolution" updates="constant" val="128" valType="code"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
</ImageComponent>
<TextComponent name="stimulusTextBox">
<Param name="color" updates="set every repeat" val="$stimulusColor" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="stimulusTextBox" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[0, 0]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.3" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$text_stimulus" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<KeyboardComponent name="requiredResponse">
<Param name="allowedKeys" updates="set every repeat" val="requiredAllowed" valType="code"/>
<Param name="correctAns" updates="constant" val="$requiredCorrect " valType="str"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="discard previous" updates="constant" val="True" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="forceEndRoutine" updates="constant" val="True" valType="bool"/>
<Param name="name" updates="None" val="requiredResponse" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.3" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="store" updates="constant" val="first key" valType="str"/>
<Param name="storeCorrect" updates="constant" val="True" valType="bool"/>
<Param name="syncScreenRefresh" updates="constant" val="True" valType="bool"/>
</KeyboardComponent>
<KeyboardComponent name="feedbackResponse">
<Param name="allowedKeys" updates="set every repeat" val="feedbackAllowed" valType="code"/>
<Param name="correctAns" updates="constant" val="$feedbackCorrect " valType="str"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="discard previous" updates="constant" val="True" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="forceEndRoutine" updates="constant" val="False" valType="bool"/>
<Param name="name" updates="None" val="feedbackResponse" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val=".3" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="store" updates="constant" val="first key" valType="str"/>
<Param name="storeCorrect" updates="constant" val="True" valType="bool"/>
<Param name="syncScreenRefresh" updates="constant" val="True" valType="bool"/>
</KeyboardComponent>
<TextComponent name="feedback">
<Param name="color" updates="constant" val="red" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.2" valType="code"/>
<Param name="name" updates="None" val="feedback" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[0, -.5]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val=".3" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every frame" val="$msg" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="leftCategoryLabel">
<Param name="color" updates="constant" val="white" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="leftCategoryLabel" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[-.6, .85]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$leftCategory" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="rightCategoryLabel">
<Param name="color" updates="constant" val="white" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="rightCategoryLabel" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[.6, .85]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.0" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$rightCategory" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="leftAttributeLabel">
<Param name="color" updates="constant" val="$[-1, 1, -1]" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="leftAttributeLabel" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[-.6, 0.55]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.0" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$leftAttribute" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="rightAttributeLabel">
<Param name="color" updates="constant" val="$[-1, 1, -1]" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="rightAttributeLabel" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[.6, 0.55]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.0" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$rightAttribute" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="orLeft">
<Param name="color" updates="constant" val="white" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="orLeft" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[-.6, .7]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.0" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$orStimulus" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="orRight">
<Param name="color" updates="constant" val="white" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="orRight" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[.6, .7]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.0" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$orStimulus" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="text_DEBUGGING">
<Param name="color" updates="constant" val="white" valType="color"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="None" valType="str"/>
<Param name="font" updates="constant" val="Open Sans" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="num"/>
<Param name="name" updates="None" val="text_DEBUGGING" valType="code"/>
<Param name="opacity" updates="constant" val="" valType="num"/>
<Param name="ori" updates="constant" val="0" valType="num"/>
<Param name="pos" updates="constant" val="(0, 0)" valType="list"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.5" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="3.0" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$image_stimulus" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="num"/>
</TextComponent>
</Routine>
<Routine name="instruction">
<CodeComponent name="block_code">
<Param name="Before Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Before JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin Experiment" updates="constant" val="# Dependencies&#10;import itertools # for flattening lists of lists into lists&#10;import random&#10;import math # for math.ceil() rounding up&#10;&#10;# Import stimuli exemplars&#10;exemplars_filename = 'stimuli.xlsx'&#10;exemplars = data.importConditions(exemplars_filename)# Import stimuli exemplars&#10;&#10;# Determine rows of examplars (i.e., max number of rows)&#10;"""&#10;This method creates a fully counterbalanced presentation of exemplars when there are 5&#10;of them, but it will not present each one an equal number of times it the n diverges from 5.&#10;"""&#10;n_exemplars = len(exemplars)&#10;print(n_exemplars)&#10;&#10;list_multiplier = int(math.ceil(10/n_exemplars)) # math.ceil() rounds up. 10 is the derived from way block lengths are calculated. Admittedly, this comment doensn't adequately document why it's ten. Honestly, I have to work it out of my fingers every time and can't explain it.&#10;&#10;# Trial generation function&#10;def generate_trials(trial_type_column, multiplier):&#10; """Generate a shuffled list of stimuli exemplars from a column in an excel stimuli file""" &#10; a = dict() # declare a dict to be populated&#10; for i in range(len(exemplars)):&#10; a[i] = [exemplars[i][trial_type_column]] * multiplier # populate the dict from vertical reads of the conditions&#10; a = a.values() # extract only values (and not keys) from the list of dicts&#10; a = list(itertools.chain(*a)) # flatten the list of dicts into a list&#10; random.shuffle(a) # shuffle this list, so that it can be drawn from by the trials&#10; return a&#10;&#10;# declare trial rows (not sure if necessary, but can't be bothered to removed and test)&#10;trial_rows = ""&#10;&#10;# set block order based on participant code&#10;participantNumber = int(expInfo['participant'])&#10;if (participantNumber % 2) == 1: &#10; block_order = 1&#10;elif (participantNumber % 2) == 0:&#10; block_order = 2&#10;else:&#10; print("****condition file error: please enter a numeric participant code****")&#10;" valType="extendedCode"/>
<Param name="Begin JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin JS Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="Begin Routine" updates="constant" val="# set the block length and the rows to pull from based on the current block &#10;# this layout follows Nosek et al. 2007, "The Implicit Association Test at age 7: A methodological and conceptual review"&#10;if blocks.thisN == 0:&#10; trial_rows = "0:2" &#10; n_block_repeats = 10 #2*10 = 20 trials&#10; modified_list_multiplier = list_multiplier&#10;elif blocks.thisN == 1:&#10; trial_rows = "2:4" &#10; n_block_repeats = 10 #2*10 = 20 trials&#10; modified_list_multiplier = list_multiplier&#10;elif blocks.thisN == 2:&#10; trial_rows = "0:4" &#10; n_block_repeats = 5 #4*5 = 20 trials&#10; modified_list_multiplier = list_multiplier&#10;elif blocks.thisN == 3:&#10; trial_rows = "0:4" &#10; n_block_repeats = 10 #4*10 = 40 trials&#10; modified_list_multiplier = list_multiplier&#10;elif blocks.thisN == 4:&#10; trial_rows = "0:2" &#10; n_block_repeats = 20 #2*20 = 40 trials&#10; modified_list_multiplier = list_multiplier * 2 # because this block has a different trials:categories ratio&#10;elif blocks.thisN == 5:&#10; trial_rows = "0:4" &#10; n_block_repeats = 5 #4*5 = 20 trials&#10; modified_list_multiplier = list_multiplier&#10;elif blocks.thisN == 6:&#10; trial_rows = "0:4" &#10; n_block_repeats = 10 #4*10 = 40 trials&#10; modified_list_multiplier = list_multiplier&#10;&#10;# Generate list of stimuli for the block&#10;text_trial_type_1_trials = generate_trials('text_trial_type_1_exemplars', modified_list_multiplier) # function and variable determined at begin exp.&#10;text_trial_type_2_trials = generate_trials('text_trial_type_2_exemplars', modified_list_multiplier)&#10;text_trial_type_3_trials = generate_trials('text_trial_type_3_exemplars', modified_list_multiplier)&#10;text_trial_type_4_trials = generate_trials('text_trial_type_4_exemplars', modified_list_multiplier)&#10;img_trial_type_1_trials = generate_trials('img_trial_type_1_exemplars', modified_list_multiplier)&#10;img_trial_type_2_trials = generate_trials('img_trial_type_2_exemplars', modified_list_multiplier)&#10;img_trial_type_3_trials = generate_trials('img_trial_type_3_exemplars', modified_list_multiplier)&#10;img_trial_type_4_trials = generate_trials('img_trial_type_4_exemplars', modified_list_multiplier)&#10;&#10;# set category and attribute labels based on the block order and current block&#10;if block_order == 1 and blocks.thisN <= 3:&#10; leftCategory = categoryA&#10; rightCategory = categoryB&#10;elif block_order == 1 and blocks.thisN > 3:&#10; leftCategory = categoryB&#10; rightCategory = categoryA&#10;elif block_order == 2 and blocks.thisN <= 3:&#10; leftCategory = categoryB&#10; rightCategory = categoryA&#10;elif block_order == 2 and blocks.thisN > 3:&#10; leftCategory = categoryA&#10; rightCategory = categoryB" valType="extendedCode"/>
<Param name="Code Type" updates="None" val="Py" valType="str"/>
<Param name="Each Frame" updates="constant" val="" valType="extendedCode"/>
<Param name="Each JS Frame" updates="constant" val="" valType="extendedCode"/>
<Param name="End Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="End JS Experiment" updates="constant" val="" valType="extendedCode"/>
<Param name="End JS Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="End Routine" updates="constant" val="" valType="extendedCode"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="name" updates="None" val="block_code" valType="code"/>
</CodeComponent>
<TextComponent name="instructionsBox">
<Param name="color" updates="constant" val="white" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.05" valType="code"/>
<Param name="name" updates="None" val="instructionsBox" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[0, 0]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.75" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$instructions" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<KeyboardComponent name="instructionsKey">
<Param name="allowedKeys" updates="constant" val="'e', 'i'" valType="code"/>
<Param name="correctAns" updates="constant" val="" valType="str"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="discard previous" updates="constant" val="True" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="forceEndRoutine" updates="constant" val="True" valType="bool"/>
<Param name="name" updates="None" val="instructionsKey" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="2.75" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="store" updates="constant" val="nothing" valType="str"/>
<Param name="storeCorrect" updates="constant" val="False" valType="bool"/>
<Param name="syncScreenRefresh" updates="constant" val="True" valType="bool"/>
</KeyboardComponent>
<TextComponent name="leftCategoryLabel_2">
<Param name="color" updates="constant" val="white" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="leftCategoryLabel_2" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[-.6, .85]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.75" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$leftCategory" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="rightCategoryLabel_2">
<Param name="color" updates="constant" val="white" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="rightCategoryLabel_2" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[.6, .85]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.75" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$rightCategory" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="leftAttributeLabel_2">
<Param name="color" updates="constant" val="$[-1, 1, -1]" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="leftAttributeLabel_2" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[-.6, 0.55]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.75" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$leftAttribute" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="rightAttributeLabel_2">
<Param name="color" updates="constant" val="$[-1, 1, -1]" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="rightAttributeLabel_2" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[.6, 0.55]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.75" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$rightAttribute" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="orLeft_2">
<Param name="color" updates="constant" val="white" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="orLeft_2" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[-.6, .7]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.75" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$orStimulus" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
<TextComponent name="orRight_2">
<Param name="color" updates="constant" val="white" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="orRight_2" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[.6, .7]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.75" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="set every repeat" val="$orStimulus" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
</Routine>
<Routine name="end">
<TextComponent name="endBox">
<Param name="color" updates="constant" val="white" valType="str"/>
<Param name="colorSpace" updates="constant" val="rgb" valType="str"/>
<Param name="contrast" updates="constant" val="1" valType="num"/>
<Param name="disabled" updates="None" val="False" valType="bool"/>
<Param name="durationEstim" updates="None" val="" valType="code"/>
<Param name="flip" updates="constant" val="" valType="str"/>
<Param name="font" updates="constant" val="Arial" valType="str"/>
<Param name="languageStyle" updates="None" val="LTR" valType="str"/>
<Param name="letterHeight" updates="constant" val="0.1" valType="code"/>
<Param name="name" updates="None" val="endBox" valType="code"/>
<Param name="opacity" updates="constant" val="1" valType="code"/>
<Param name="ori" updates="constant" val="0" valType="code"/>
<Param name="pos" updates="constant" val="[0, 0]" valType="code"/>
<Param name="saveStartStop" updates="None" val="True" valType="bool"/>
<Param name="startEstim" updates="None" val="" valType="code"/>
<Param name="startType" updates="None" val="time (s)" valType="str"/>
<Param name="startVal" updates="None" val="0.75" valType="code"/>
<Param name="stopType" updates="None" val="duration (s)" valType="str"/>
<Param name="stopVal" updates="constant" val="3" valType="code"/>
<Param name="syncScreenRefresh" updates="None" val="True" valType="bool"/>
<Param name="text" updates="constant" val="End of the task" valType="str"/>
<Param name="units" updates="None" val="from exp settings" valType="str"/>
<Param name="wrapWidth" updates="constant" val="" valType="code"/>
</TextComponent>
</Routine>
</Routines>
<Flow>
<LoopInitiator loopType="TrialHandler" name="blocks">
<Param name="Selected rows" updates="None" val="" valType="str"/>
<Param name="conditions" updates="None" val="[{'instructions': 'Put your middle or index fingers on the E and I keys of your keyboard. Words representing the categories at the top will appear one-by-one in the middle of the screen. When the item belongs to a category on the left, press the E key; when the item belongs to a category on the right, press the I key. Items belong to only one category. If you make an error, an X will appear - fix the error by hitting the other key.\n\nThis is a timed sorting task. GO AS FAST AS YOU CAN while making as few mistakes as possible. Going too slow or making too many errors will result in an uninterpretable score. This task will take about 5 minutes to complete.\n\nPress E or I to continue.', 'categoryA': 'African Americans', 'categoryB': 'European Americans', 'leftAttribute': ' ', 'rightAttribute': ' ', 'orStimulus': ' '}, {'instructions': 'See above, the categories have changed. The items for sorting have changed as well. The rules, however, are the same.\n\nWhen the item belongs to a category on the left, press the E key; when the item belongs to a category on the right, press the I key. Items belong to only one category. An X appears after an error - fix the error by hitting the other key. GO AS FAST AS YOU CAN.\n\nPress E or I to continue.', 'categoryA': ' ', 'categoryB': ' ', 'leftAttribute': 'Good', 'rightAttribute': 'Bad', 'orStimulus': ' '}, {'instructions': 'See above, the four categories you saw separately now appear together. Remember, each item belongs to only one group.\n\nThe green and white labels and items may help to identify the appropriate category. Use the E and I keys to categorize items into four groups left and right, and correct errors by hitting the other key.\n\nPress E or I to continue.', 'categoryA': 'African Americans', 'categoryB': 'European Americans', 'leftAttribute': 'Good', 'rightAttribute': 'Bad', 'orStimulus': 'or'}, {'instructions': 'Sort the same four categories again. Remember to go as fast as you can while making as few mistakes as possible.\n\nThe green and white labels and items may help to identify the appropriate category. Use the E and I keys to categorize items into the four groups left and right, and correct errors by hitting the other key.\n\nPress E or I to continue.', 'categoryA': 'African Americans', 'categoryB': 'European Americans', 'leftAttribute': 'Good', 'rightAttribute': 'Bad', 'orStimulus': 'or'}, {'instructions': 'Notice above, there are only two cateogries and they have switched positions. The concept that was previously on the left is now on the right, and the concept that was on the right is now on the left. Practice this new configuration.\n\nUse the E and I keys to catgorize items left and right, and correct errors by hitting the other key.\n\nPress E or I to continue.', 'categoryA': 'African Americans', 'categoryB': 'European Americans', 'leftAttribute': ' ', 'rightAttribute': ' ', 'orStimulus': ' '}, {'instructions': 'See above, the four categories now appear together in a new configuration. Remember, each item belongs to only one group.\n\nThe green and white labels and items may help to identify the appropriate category. Use the E and I keys to categorize items into the four groups left and right, and correct errors by hitting the other key.\n\nPress E or I to continue.', 'categoryA': 'African Americans', 'categoryB': 'European Americans', 'leftAttribute': 'Good', 'rightAttribute': 'Bad', 'orStimulus': 'or'}, {'instructions': 'Sort the same four categories again. Remember to go as fast as you can while making as few mistakes as possible.\n\nThe green and white labels and items may help to identify the appropriate category. Use the E and I keys to categorize items into the four groups left and right, and correct errors by hitting the other key.\n\nPress E or I to continue.', 'categoryA': 'African Americans', 'categoryB': 'European Americans', 'leftAttribute': 'Good', 'rightAttribute': 'Bad', 'orStimulus': 'or'}]" valType="str"/>
<Param name="conditionsFile" updates="None" val="instructions.xlsx" valType="str"/>
<Param name="endPoints" updates="None" val="[0, 1]" valType="num"/>
<Param name="isTrials" updates="None" val="False" valType="bool"/>
<Param name="loopType" updates="None" val="sequential" valType="str"/>
<Param name="nReps" updates="None" val="1" valType="code"/>
<Param name="name" updates="None" val="blocks" valType="code"/>
<Param name="random seed" updates="None" val="" valType="code"/>
</LoopInitiator>
<Routine name="instruction"/>
<LoopInitiator loopType="TrialHandler" name="trials">
<Param name="Selected rows" updates="None" val="$trial_rows" valType="str"/>
<Param name="conditions" updates="None" val="[{'trial_type': 1, 'stimulusText': 'text_trial_type_1', 'stimulusImage': 'img_trial_type_1'}, {'trial_type': 2, 'stimulusText': 'text_trial_type_2', 'stimulusImage': 'img_trial_type_2'}, {'trial_type': 3, 'stimulusText': 'text_trial_type_3', 'stimulusImage': 'img_trial_type_3'}, {'trial_type': 4, 'stimulusText': 'text_trial_type_4', 'stimulusImage': 'img_trial_type_4'}]" valType="str"/>
<Param name="conditionsFile" updates="None" val="block_layout.xlsx" valType="str"/>
<Param name="endPoints" updates="None" val="[0, 1]" valType="num"/>
<Param name="isTrials" updates="None" val="True" valType="bool"/>
<Param name="loopType" updates="None" val="fullRandom" valType="str"/>
<Param name="nReps" updates="None" val="n_block_repeats" valType="code"/>
<Param name="name" updates="None" val="trials" valType="code"/>
<Param name="random seed" updates="None" val="" valType="code"/>
</LoopInitiator>
<Routine name="trial"/>
<LoopTerminator name="trials"/>
<LoopTerminator name="blocks"/>
<Routine name="end"/>
</Flow>
</PsychoPy2experiment>