How to use input on log.write_vars()
Hello there everyone,
it's my first time using OpenSesame and so far I was able to figure everything out using a lot of googeling, the manual and some brain power.
There is this one thing I can't figure out though:
How to use input on the log.write_vars() function. It seems like no matter what syntax I try, it won't work.
For example, if I try log.write_vars(acc) (since I only want to track accuracy in this example), it throws me the following error: NameError: name 'acc' is not defined.
I tried everything I could think of, like using lists as inputs, trying different variables, etc.
I hope my problem has become clear and that someone can help me.
Thanks a lot in advance!
Comments
Hi,
log.write_vars() is a function to write multiple variables, if you just want to write a single variable, it still must be in a container (e.g. a list):
log.write_vars(var_list = ['acc'])See here:
Good luck,
Eudard