[solved] How do I get more information into the logfile with an inline script?
Hello everyone,
in my experiment, I've got an inline script in which I've created a list, which includes different pictures. The list is shuffled so that every picture will be randomly assigned to a variable like "def1", "def2" and so on.
For example:
picture3 -> def1
picture -> def2
picture2 -> def3
Is it possible to include a line in the inline script, that writes into the logfile which picture is assigned to each variable? It would be very helpful if I could see what picture was assigned to each variable after the experiment.
Greetings
Christian
Comments
Hi Christian,
If you assign the values to variables that start with
var.then they will be automatically logged the next time that the logger is being called (. In case you don't have a logger yet, you can also programmatically call it, by usinglog.write_vars()For more details see here: https://osdoc.cogsci.nl/3.3/manual/python/log/
Hope this helps.
Eduard
That worked fine.
Thanks a lot eduard! :)
Greetings
Christian