Howdy, Stranger!

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

Supported by

Global variabels forced into strings

After a bit of a break from working with OS, I tried to run one of my previous scripts again and it didn't work anymore, because all the global variables (i.e., var.something) are now being turned into string variables, whereas before, they could be anything (floats, lists, etc.).

Sure, there are workarounds by combining them with regular variables, but this seems like some sort of error to me, maybe in the settings somewhere. I'm using Python 3.10 (virtual conda environment).

Or is using global variables like that deprecated and I missed it?


Cheers!

Comments

  • Hi @ChrIm,

    Have you updated your Opensesame version? Generally, there is no guarantee that older experiments are compatible with newer versions, so if you want to replicate your old experiment it is best to download an older release from github and use that one for your experiment.

    For this particular situation, are you speaking about variables in the log file? Or within the experiment itself? The latter would indeed be surprising behavior that I have not encountered yet as such. But then, I am only using Opensesame 4 at the moment.

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.