![]() |
|
#1
|
|||
|
|||
|
DeprecationWarning when running a yield statement
Hello
I am working on this script where I run a task, wait for the user to give a mouse response and store the reaction time. Below is the task: Code:
def example_trial():
response = viz.Data()
startTime = viz.tick()
yield viztask.waitMouseDown( None, response )
print 'response at: ', viz.tick()
reactionTime = response.time - startTime
print reactionTime
but when it comes to the yield line it gives me this warning, and I can't figure out what it means and how to fix it Code:
DeprecationWarning: "data" option will be removed in future versions, use "[data] = yield [condition]" instead yield viztask.waitMouseDown( None, response ) |
| Tags |
| condition, data, deprecation, warning, yield |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unexpected Avatar lookAt() behavior when using yield statements | chris2307 | Vizard | 2 | 12-17-2013 02:58 AM |
| connecting to SMI iViewX running a RED tracker | pkhoosh | Vizard | 11 | 10-20-2011 04:17 PM |
| running experimental trials | fivel_lab | Vizard | 3 | 03-18-2011 02:58 PM |
| exiting a yield statement | starbug | Vizard | 2 | 01-12-2010 03:16 PM |
| Problems running R3 and R2.5 on the same computer | cade_mccall | Vizard | 5 | 09-05-2006 11:26 AM |