Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] How do I get more information into the logfile with an inline script?

edited December 2020 in OpenSesame

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 using log.write_vars()

    For more details see here: https://osdoc.cogsci.nl/3.3/manual/python/log/

    Hope this helps.

    Eduard

    Buy Me A Coffee

  • That worked fine.

    Thanks a lot eduard! :)


    Greetings

    Christian

Sign In or Register to comment.