Im trying to create an experiment in which participants are shown a list of items (e.g., names). For each item, they need to indicate whether it is significant for them (yes or no). Hence, I used the form component in psychopy - it nicely presents all my items (as a list) with a no/yes option next to it.
In the next phase of the experiment I only want to use the items to which participants answered “no”. Hence, I tried to retrieve the form-data using a code component (please see below) - so, I can later on use it (in a new routine). However, it doesnt seem to work. My formData variable doesnt seem to include the answers (yes vs no; 1 vs 0)…
Any help will be much appreciated!
formData = form.getData()
formData_array = np.array(formData)
formData_array [formData_array [“ratings”]!= “0”]