Description of the problem: This is a word spotting experiment, where participants push a button when they spot a real (spoken) word and subsequently enter the word on the screen. The problem is that the data (CSV) is misaligned, so that the data regarding the entered word ends up on the row below that of the relevant trial in the csv file. This only occurs in the Pavlovia version, not locally, where each row successfully includes trial information plus the entered word. I’ve seen other threads regarding this issue, but none has a solution. PsychoPy version is 2020.2.10, and I’ve tried several versions with no luck. I’d be very grateful for any input. Thank you! Picture of issue hopefully below.
Hi there, thank you for your response. Good question, it might depend on what you mean by organise? At the end of the Trial routine, I have the following code to print the typed word: thisExp.addData(“typedWord”, text.text). Otherwise, I basically have a go/no-go loop setup, which listens out for a SPACE press that leads to a text input component (which results in the concatenated “typedWord”). I hope this makes sense.
Your issue is the stop_routine_if_no_space loop. Is trials doesn’t yet work online, so userResponse is being saved in the row below stimulus presentation.
You have two choices.
Save anything you need from stimulusPresentation in code in the userResponse routine so that it appears in the same rows. You’ll still have extra rows, but they should be easy to ignore.
Instead of using a loop to selectively present userResponse, end the routine using continueRoutine = False in Begin Routine if no space. This is definitely the more elegant solution.
Thank you! I’ve made a continueRoutine loop now, according to 2.), and it’s definitely more elegant. However, the issue still remains in the online version. The location of the key_resp data from the welcome screen appears in different places in the data (also the data is still arranged differently online and offline). Could this be a potential cause of the issue? Or is it still to do with when it saves the response? I’ve tried turning isTrials on and off but it doesn’t seem to make a difference. Picture of 1. offline results file and 2. online results file below. Thank you so much again for your help (and for your brilliant crib sheet by the way)!
I have some how the same problem.
the subject numbers are not shown in the same columns. for instance for a couple of participants, subject numbers are shown in e.g, column F, for some participants it is shown in e.g column H, and for others, the subject numbers are shown in column L.
I want the subject numbers to be in one column.
I appreciate it if anyone has the knowledge and could help me with addressing this issue.
Thank you for your response.
No, Do you want me to run the experiment and do it for a couple of time like for 5 time, I myself can do it and save the file. Does that work?
I did the experiment a couple of minutes ago twice. for the first attempt the subject number is shown in column HC but for the second one it is in column HI
I need them to be in the same column.
If you are running your study online then you can switch to database saving to save all data into a single spreadsheet.
Alternatively, Have a look at the data files you’ve collected. What is the first column that changes position? Why isn’t it always saved at the same point in the experiment?
Alternatively, there is an option under Experiment Settings/Data to save data in alphabetical or priority order instead of the order of creation.
Thank you for your response.
It’s not an online study. It has been done in our lab, in person.
there are many columns, however, depending on the responses that participants give to the answer there might be more or fewer columns. for instance, to answer the question “Are you an international student?”, if they say no they will go to the next page, but if they say yes, they will have to answer from which country. the other example is, to answer the question “Have you taken any English test?” if say yes, they have to specify the score of that test, but if they say no, there is no need to write anything. These types of things cause misalignment.
Again it did the experiment 6 more times with some specific answers to see when misalignment happens. for instance for 3 attempts, as a subject, to the question “Are you an international student?” I said yes, then typed the name of a country. but for the other 3 attempts, I said no to that question.
to answer the question “Have you taken any English test?” for some attempts I said yes, and specified the score by writing the score, while for some attempts I said no and didn’t write anything.
then I check the CSV file. there was misalignment. for participants e.g., 3, 4, 5 with the same answers to the above question, the data was shown in the same columns. but for participants 6, 7, and 8 (whose answers were different from participants 3, 4, and 5, ) the answers were shown in different columns. However, for participants 6, 7, and 8 answers were shown in the same columns.
Does that make sense?
I appreciate your time to help.
I don’t know how to edit the code. I would appreciate it if could let me know if you know that.
Where do I have to add codes? do you have any sample or something to share?