VISUAL SEARCH error
Hi to everyone! I'm starting to use open sesame and I followed the two tutorials. I have a problem with the second experiment because he give me some error that I don't know how to solve. The errors that appears are those:
Inline script, line 140, in <module>
Inline script, line 137, in draw_canvas
Inline script, line 107, in draw_distractor
Exception: Invalid condition: conjuction
I'm trying a lot of things but I can't solve it. I add my file, if anyone can help me- Thank you so much
Comments
I noted that if I eliminate this part of the script (106-107)
else:
raise Exception('Invalid condition: %s' % var.condition)
the experiment works and the errors disappear, but the target or distractors doesn't appear always in each trial. Thanks to everyone that will help me.
Hi @RobertaIannace ,
The error comes, as you noticed yourself, from the
draw_distractor()function. This function does something different depending on whether the valueconditionhas the value 'conjunction', 'feature_shape', or 'feature_color'. For any other value, you get the 'Invalid condition' error. (AnExceptionis the Python term for an error.)So with that in mind, look critically at your block_loop to see what values you are actually assigning to
condition!-- Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!