PsychoPy version (2021.2.3):
Standard Standalone? (y)
What are you trying to achieve?:
Modify data output file to include stimulus name along with keypress responses.
What did you try to make it work?:
I have read through the psychopy.data documentation. I have also utilized different experimental building settings.
What specifically went wrong when you tried that?:
Hi everyone, I do not have an error to show for this question as the experiment does not have one and runs without error.
I am using the shuffle command prior the experimental loop in a routine I call “shuffler”
The experimental loop is a picture naming paradigm and called PNT_1 and contains three components in the following order:
- Code: “pnt_code”
- Image: image_PNT
- Keyboard: “pnt_code”
pnt_code provides the experiment with the shuffled data as follows.
#Item counter curr_item = -1
#increment item counter by 1 #starting at negative 1 makes python chose first item with the beload code curr_item += 1 #update the item variables as we progress through list pnt_items = target[curr_item]
The images component is formatted as follows:
The keyboard routine is here:
I get accuracy, response time data, etc. But I do not get the item’s name as an output. At the begining of the experiment when I run the shuffle command I do output a csv of the items so that the experimenter will know which item is coming next. So one thing I could do is merge the dataframes, but I have to believe I can do this in pytorch and not with external code.
Any help would be greatly appreciated!
Please let me know if I can provide anymore information.