Silencing Error Messages?
Hello,
Just updated to Opensesame 3.0 and loving it so far. Thank you for offering free and powerful experiment software!
Recently, I have been getting an error message after experiments that reads in the opensesamerun.exe.log:
Opensesame\libopensesame\var_store.py:198: UserWarning: var fullscreen is stored as attribute of item Experiment
The experiment runs fine, and data is logged. However, when I run experiments back-to-back this error message disrupts the flow and confuses participants. Is there any way to remedy the issue or at least silence the error message from popping up after the experiment closes?
Thanks,
Dan
Comments
Hi Dan,
I don't really know if you can supress these error messages. OpenSesame is packaged with py2exe which causes this behavior, see http://www.py2exe.org/index.cgi/StderrLog and http://stackoverflow.com/questions/20549843/py2exe-generate-log-file. These links provide a solution to your problem, but I don't know if it will work in OpenSesame, as it already does a lot of output rerouting on its own.
There might be simpler solution. The error relates to fullscreen being stored in th var object. If you delete this variable somewhere at the end (and if that does not work, maybe already at the start) of your experiment by placing the line
in an inline_script item. Maybe OpenSesame will no longer have a reason to throw this error message and you will also no longer get the error log notification.
Hi,
Thanks for pointing this one out. What happens is that opensesamerun still uses the old way of setting variables—which it shouldn't. This is harmless, but triggers a warning. What you could do is add the following line to the top of your experimental script:
This will set the
fullscreenvariable the right way, and should suppress the warning.Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!