ValueError: Unsupported value “0.5” for operation when setting pos in TextStim

If this template helps then use it. If not then just delete and start from scratch.

OS :Win10
PsychoPy version :1.74

I need my text to be in a different position depending on the trial.

I’ve got the Y position of the text (TextPosY) in an excel sheet with the positions but I keep getting the error above. If I manually enter (0, 0.5) into the “Position [x ,y]” box then 0, 0.5 works but when it gets 0.5 from (0, $TextPosY) then it suddenly says “0.5” is an unsupported value. The quotation marks are leading me to believe it is reading the numbers as strings. I’ve set them all to be numeric on excel and the only cell with a string is the title i.e. TextPosY but its still not working.

Does anyone have any more ideas?



Because the ‘Pos’ field already has a ‘$’ by default you can change the position of your stim on each frame by entering the following into the pos field without a dollar sign:

(Xpos, Ypos)

where Xpos and Ypos are headers in your conditions file.

Let me know how you get on,