Howdy, Stranger!

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

Supported by

weird log behaviour

Hello,

Recently my experiment logs started to have about 33 columns without variables names, with all kind of info (not sure i need it), which causes my R code to crush (as they don't have column names). I can overcome that in R code, and ignore those, but before that i am trying to understand what happened.

I did some changes recently, mostly in Python scripts of the experiment and I wonder how those columns are created and why.

here's the screenshot of one of the log files without column names.


thanks for any help!

Lena

Comments

  • edited January 25

    after few more hours of digging, i realize that the column names at the end, that do have values, are actually the wrong ones. looks like there are columns logged in between, which do not have names and the ones at the end are shifted.

    apparently, some global variables that i defined in few python scripts are being logged without names and shift all the others.

    i have removed the 'var' in front of them and my log is back to normal. I think i had some major understanding issue, that variables in one script have to be defined as global to be used in another one.. and it seems to be wrong. does it mean that any variable defined in python script is accessible from other scripts?

    thank you

    Lena

  • Hi Lena,

    does it mean that any variable defined in python script is accessible from other scripts?

    Yes, the var thing is only necessary to make variables available for Opensesame items (like a sketchpad), and for adding a variable to the logger. But across inline_scripts, there is no need to use var

    Eduard

Sign In or Register to comment.