OS (e.g. Win10): Mac OS Ventura 13.6.3
PsychoPy version (e.g. 1.84.x): v2023.2.3
Standard Standalone? (y/n) If not then what?: Yes, but also sync with Pavlovia.
What are you trying to achieve?:
I am designing a category learning experiment in which there are 8 exemplars (jpg files) with 4 being assigned to one category (requiring a left arrow key press) and 4 being assigned to a second category (right arrow key press). However, half way through the task I’d like the exemplar-category assignments to switch for some or all of the exemplars.
What did you try to make it work?:
I can get this to work by looping around a set of routines for the first part, and then looping around a second set of routines (identical to the first) for the second part where each loop has its own conditions file specifying the exemplar-category assignments for those individual trials within each repetition of the loop. This all works fine, and it converts to Pavlovia just fine as well, but I’m wondering if there might be a better way to code this than to insert duplicate loops throughout the flow.
What specifically went wrong when you tried that?:
I wonder if a nested-loops approach can be used to somehow specify conditions file #1 for the first nReps through the loop but then to switch to conditions file #2 for the second nReps through the loop (i.e., for the nested part). Is this possible? I suppose if one could specify the conditions file to be a variable, then somewhere code could be inserted to indicate which conditions file to use depending on where you are in the nest. But it’s not obvious to me how to do that.
I'd be very grateful for any ideas.