I am using Psychopy version 1.90.1, running on Windows 10.
I am using the following code to generate an array for the jittered inter-stimulus interval (ISI) in my EEG experiment.
jitter_1 = np.arange(2, 2.51, 0.017)
To my understanding this will create an array in steps on 0.017 between the values of 2 and 2.51, giving 31 possible values for the jittered ISI. It will then shuffle this array on each repetition of the routine, thus giving a randomly selected value for the ISI on each trial.
I have come across the following code to add experiment data to my output excel file:
thisExp.addData (‘jitter_1’, jitter_1)
However, my problem is that because I am creating a shuffled array, the print out includes a list of values from the array rather than the single value used for the ISI on the specific trial (see extract below).
Can anyone tell me how to work out which single value was used on each of my trials for the ISI?
Is there a different piece of code I can use to print the single value taken from my array to the output file?
Is the information already in the print out of my array? For example, perhaps the first value on the list is the one used in that trial.
Thank you for your time and help in advance,
Please do let me know if any further information is required, I am new to the forum and this is my first post.
Extract from output excel file: