psychopy.org | Reference | Downloads | Github

Different units for a textStim stimulus

Dear all,

I wonder if there is a way to set one parameter of a textstim in a unit (eg deg) while setting another parameter in another way (eg px).
For example (taking from divided visual field paradigms), if I want to set the position of a word to 2 deg but set the word height police to 18, how can I do this?

Alex

Not directly. The “units” attribute applies to a stimulus as a whole.

You could pass some parameters through an appropriate conversion function though, and PsychoPy does indeed provide functions for that:
http://www.psychopy.org/api/misc.html

Thanks, I check it.
However, I’m able to make it work.
I began to set the monitor using monitors.Monitor() However, I’ve got the following error:

from psychopy import monitors
mon=monitors.Monitor=('mac')
Traceback (most recent call last):
  File "<input>", line 1, in <module>
TypeError: 'str' object is not callable

I guess I made a mistake but I don’t find it

A reboot of psychopy solved this problem :wink: