Skip to content

Commit 03fc9c0

Browse files
authored
Merge pull request #32 from kimDundas/add_alt_text
DOC: Added alt text to n-back tutorial
2 parents bfa0aa3 + f74c7d6 commit 03fc9c0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/tutorials/experiments/n_back.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Feeding trial info into PsychoPy
5757
once we have our conditions file set up and **saved in the same location as our experiment** we need to give this info to our experiment. Add a loop around your trial routine and give the path to your conditions file in the Conditions field. We want to make sure our letters are presented in a preset order, so make sure to set loop type to **sequential**.
5858

5959
.. image:: ./n_back_loop_sequential.png
60+
:alt: "A PsychoPy Routine showing a fixation cross, a letter and a key response"
6061
:width: 100 %
6162

6263
Finally, because our letter is changing trial-by-trial add :code:`$thisLetter` to the text field of your letter component and make sure to **set every repeat**
@@ -67,6 +68,7 @@ Collecting responses
6768
There are a few tweaks we need to make to our keyboard component to make sure things are just right here. First, by default a keyboard response will force the end of the current routine. That means that if any stimuli were going to be presented later in the routine they would not be presented, in our case it would alter the inter-stimulus-interval by shortening this trial. So, make sure to uncheck the `Force end of Routine` box.
6869

6970
.. image:: ./n_back_force_end_none.png
71+
:alt: "A PsychoPy sequential loop"
7072
:width: 100 %
7173

7274
The final thing we might want to do is make sure that we store whether a keypress was correct or not. We can do this by adding a column to our conditions file to indicate what the correct response would be on that trial:
@@ -174,4 +176,4 @@ We covered a few code concepts in this tutorial so let's play with what we learn
174176
1. Make a basic string variable that represents your name.
175177
2. Convert that string to a list.
176178
3. Use a while loop to keep selecting letters from your name *until* you find one letter you want.
177-
4. Present that letter in a text component.
179+
4. Present that letter in a text component.

0 commit comments

Comments
 (0)