I am doing an experiment with sentences of different lengths and some of the columns have empty cells (with no words), I want Psychopy to ignore those cells and go to the next frame/column. When I leave them blank or write NA in the excel file, a “default text” messages appears on the screen of the experiment, and if a leave an space on excel, it stills appears a blank screen waiting for a response.
If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): PsychoPy version (e.g. 1.84.x): Standard Standalone? (y/n) If not then what?: What are you trying to achieve?:
What did you try to make it work?:
What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.
Thanks for replying so promptly!
Here they are, so each column (W1, W2, …, W19) represents a word in a sentence, they are of different length, also few of them have a question at the end, so I have a lot of empty cells that I wish Psychopy just ignored.
Hi @Laura_Pissani. Sorry for my delay in getting back to you. I was super busy today.
Attached you can find a builder experiment. I created a condition with some empty cells and I used a code that I sent you. So, the experiment skips those empty cells in each routine. I hope it is clear.
You can get an idea on how to do this in your experiment.
I ran the experiment in my computer and this appeared (I did not edit anything).
I already figured out a way (creating and additional column with 1 and 0s to tell the program they should only run the 1 cells) BUT your way seemed way better, but I can’t make it work.
That is weird. It worked on my laptop and I had the same issue when I tested it on my desktop. I think the problem is with the empty cells. I put the word “empty” in those empty cells and change the code accordingly. Now, it should work. conditions.xlsx (8.3 KB) untitled.psyexp (11.9 KB)