[solved] Randomly drawing items from the file pool
Hello,
Im at the moment trying to programm a quite complex experiment with OpenSesame.
Im not sure if it is possible with the given ressource of OpenSesame to programm it, im not able to use the coding of OpenSesame, which i think might be the problem.
I have an Itempool of 100 pictures which should be randomly divided into two different loops, one loop showing two pictures together, the other loop showing first one picture and after some delay the next picture.
I am able to programm both loops, but im not able to draw 40 items randomly from the itempool and shuffle them randomly on both groups. My main problem is than that there are two recalls where the testperson has to remember what pictures were shown. Is there any possibility that Open Sesame remembers what pictures it has taken from the item pool, show them in random order with a different picture.
So for example the programm draws just 4 pictures:
a) showing two garden scenes assigned to the first group, so they are shown together.
b) showing two city scenes, assigned to the second group so they are shown first scene 1 and than scene 2.
Now group one recall should be able to show the first garden scene on top of 3 "false" garden scenes and 1 "correct" so the shown garden scene.
So the programm would have to remember "I have choosen picture a, so i use picture a aswell in the recall." Aswell as "i have choosen picture a for group 1 so i show it in the recall for group 1"
Due to the fact that that all happens on random and only 40 of the 100 avaible items are shuffeled i have no idea how i could make that work.
I am able to programm all the loops, my problem is the item drawing from the item pools.
I hope my english is good enough to show where my problems are.
Thanks for your help,
Best regards
Henrik
Im at the moment trying to programm a quite complex experiment with OpenSesame.
Im not sure if it is possible with the given ressource of OpenSesame to programm it, im not able to use the coding of OpenSesame, which i think might be the problem.
I have an Itempool of 100 pictures which should be randomly divided into two different loops, one loop showing two pictures together, the other loop showing first one picture and after some delay the next picture.
I am able to programm both loops, but im not able to draw 40 items randomly from the itempool and shuffle them randomly on both groups. My main problem is than that there are two recalls where the testperson has to remember what pictures were shown. Is there any possibility that Open Sesame remembers what pictures it has taken from the item pool, show them in random order with a different picture.
So for example the programm draws just 4 pictures:
a) showing two garden scenes assigned to the first group, so they are shown together.
b) showing two city scenes, assigned to the second group so they are shown first scene 1 and than scene 2.
Now group one recall should be able to show the first garden scene on top of 3 "false" garden scenes and 1 "correct" so the shown garden scene.
So the programm would have to remember "I have choosen picture a, so i use picture a aswell in the recall." Aswell as "i have choosen picture a for group 1 so i show it in the recall for group 1"
Due to the fact that that all happens on random and only 40 of the 100 avaible items are shuffeled i have no idea how i could make that work.
I am able to programm all the loops, my problem is the item drawing from the item pools.
I hope my english is good enough to show where my problems are.
Thanks for your help,
Best regards
Henrik
Comments
Hi Henrik,
Thank you for your interest in OpenSesame!
So, if I understand correctly, the structure of the experiment is something like the following:
Is this correct?
I'm fairly sure the experiment can be done, although it might require a bit of inline code. When I'm confident I understand what exactly you want to do, I'll give you some example code to get you started!
Kindest regards,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks for the fast reaction, i will try to explain it further.
It is only 20 Trials each, but that doesn´t matter.
Both phases are correct.
But i would like to have the recall right after Phase 1).
So it would be:
Best regards and thank you very much for your support
Henrik
Hi Henrik,
I made a quick demonstration experiment. It uses fewer trials and pictures, but it shows the general idea. Hopefully this will get you started.
memory_recall.opensesame.tar.gz
There's a bit of Python code involved. Nothing very complicated (just some lists too keep track of which pictures have been shown and such), but if you're unfamiliar with Python you could take a look at, for example, a Byte of Python:
Byte of Python
Good luck!
Kindest regards,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hey,
I finally made it, programm and everything is working thank you very much for your rly rly good support!
Best regards
Henrik
Dear Henrik,
Could you please post your code? I have a very similar experiment planned out and am new to Sesame