PsychoPy version v3.0.5 (Psychopy 3):
Standard Standalone? (y)
What are you trying to achieve?:
To specify location of the Image, I write $eval(PixelLocation) in the “position” field of Image Properties, which calls the coordinates from a column in Excel called “PixelLocation”, (e.g., row 1= [135,135], row 2= [0,135]).
What specifically went wrong when you tried that?:
However, this produces the error:
type error eval() arg 1 must be string bytes or code object
If I try changing the position field to $PixelLocation, it produces the following error:
setAttribute(self, ‘pos’, val2array(newPos, False), log, operation)
value = numpy.array(value,float)
ValueError: could not convert string to float: ‘[135,0]’
It’s odd because $eval(PixelLocation) has worked with other experiments (using the same psychopy version) but does not work in this case -any alternatives that are more reliable than eval()?