Select images among several and display selected ones in the next routine?

OS (e.g. Win10): Win 10
PsychoPy version (e.g. 1.84.x): 3.2.3
Standard Standalone? (y/n) If not then what?: y

Hello everyone!

I am trying to design the following:

  • participants see 2 pictures and they select their favorite one (by clicking)
  • participants see other set of pairs, among these are images they have already rated
  • after several iterations, only the 3 best rated are shown

Is it even possible to do this in the first place?
If so, would you please lead me towards an example? I do not know how to proceed :frowning:


@Oceane, this post has something very similar:

Many thanks David, I’ll have a look.

So I did have a look, yet my template doesn’t work yet.

First, I get an error message:

Traceback (most recent call last):
  File "C:\Users\mytixa17\Desktop\Food_psyexp_example\", line 280, in <module>
  File "C:\Users\mytixa17\Desktop\Food_psyexp_example\", line 108, in filterExemplar
    if mouse.isPressedIn('image') in pictures:
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\", line 872, in isPressedIn
    return any(wanted & pressed) and shape.contains(self)
AttributeError: 'str' object has no attribute 'contains'

Then, I am not sure I understand the code… That is, I do not know if the created lists are correct and if I will be, in the end, able to do what I want (that is show in a routine only the images clicked in a previous routine).

I put my files, in case anyone would have a minute to have a look :slight_smile:
pictures.xlsx (7.9 KB) test_choice.psyexp (14.3 KB)