First time posting, if I’m incomplete, sorry and please indicate what I’m doing wrong (I’m a psychopy dummy). We programmed an experiment with a digitimer shock machine. We reprogrammed the code to give the ttl signal via USB instead of a parallel port (and changed some of the underlying files).
Before we did so and without connection to the machine, our programming worked, but our adjustments now provide the following error:
Traceback (most recent call last):
File “C:\Users\lenovo\Desktop\shocks\shock paradigm\trial_v1.py”, line 740, in
File “C:\users\nazanin\python\lib\site-packages\psychopy\visual\window.py”, line 847, in flip
File “C:\users\nazanin\python\lib\site-packages\psychopy\visual\window.py”, line 721, in _assignFlipTime
TypeError: Window.getTimeOnFlip() should be called with an object and its
attribute or a dict and its key. In this case it was called with obj=<psychopy.visual.image.ImageStim object at 0x000001FAB1CD3B70>
Our current code is here: https://www.dropbox.com/sh/goofs7u3ql17pkb/AABqrHeVaaTntkz0foa-uA16a?dl=0 (our last changes that may have caused the errors are documented there, which may help). Does anyone have an idea what is going on?