Howdy, Stranger!

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

Supported by

[solved] Saving an object for use in later cycles of a loop

edited July 2014 in OpenSesame

I have a loop that has 2 cycles.

Within each cycle I find 2 target images by taking 4 images from 4 separate lists (1 from each list), which compose a new list. I then shuffle this list and take the first item as the target for a training phase and the second item as the target for a test phase.

The issue is that although my training target should NOT be consistent across cycles, the test target DOES NEED TO BE CONSISTENT across trials. I am concerned now with the latter of these two issues.

So is there anyway to save the test target (found within the loop) for later use, possibly by saving it in a folder?

Thanks in advance for the help!

Comments

  • edited 3:12PM

    Hi,

    It's difficult to give a concrete answer, because you don't describe how you've implemented this selection procedure. I'm assuming that you use an inline_script for this? Could you post the code here + any additional information that would help us understand the structure and requirements of your experiment?

    Cheers,
    Sebastiaan

  • edited 3:12PM

    It seems that your requirement for the test target to be consistent can be achieved by creating the appropriate python code before running the loop. So it is not a matter of "saving" anything to a folder but only one of creating the right sized python lists/arrays and then using code to enforce desired constraints (a type of quasi randomization from your description)

  • edited 3:12PM

    I appreciate both of you guys taking the time to respond. I was having some funky localization issues with the python script, but I was able to fix it.

    Thanks

Sign In or Register to comment.