I would like to randomise the order of multiple routines (see screenshot). Routines framed in purple should appear randomly either where they are or at the beginning where there is the purple arrow.
I have tried to add loops and the following code in the begin experiment tab
orders=[[1,0],[0,1]]
util.shuffle(orders)
where I added orders[0][outerloopname.thisN] and orders[1][outerloopname.thisN] in the nreps fields of the inner loops but it doesnât work.
I havenât tested either but couldnât see this on the list of bug fixes for the release. But yes, trying an update of PsychoPy could be another route to try
I installed the latest psychopy version and tried to update a âtestâ experiment (not my real experiment because I didnât dare to update my current experiment for fear that something would not work anymore after the update). And indeed, the online experiment gets stuck on initialising. I donât think that it is because of the outerloopname.thisN because it doesnât work without either.
Iâm launching my experiment soon (the counterbalanced order is the last thing to fix), so Iâm not sure if it is a good idea to sync with the new version if Iâm not sure that .thisN has been fixed now.
If you are stuck on the initializing page that means there is a syntax error on the JS side somewhere - do you get a line number for that error when you open developer tools?
No I couldnât resolve it yet.
I didnât do the changes on the link I have shared but on a test experiment, because I was afraid that my real experiment gets stuck with the update. So the link youâve tried is âintactâ but I did not sync with the update and did not add the .thisN part of the code I need. But it doesnât work on my test experiment where I tried to do the changes.
Aha OK, well this issue looks like a failed to load resources error. Can you try adding any resources you need for the task by using experiment settings (cog symb) >online tab then add any resources you need using the â+â icon?
oo interesting - perhaps you are running an older version of psychopy where that option wasnât available - are you able to try using the new release?https://github.com/psychopy/psychopy/releases
Hi there! I have a similar problem and I was wondering if you were able to figure out how to solve this? Iâm extremely new to coding so its been a bit of a mess, but I have 2 routines set up as stair cases, and another loop around them to randomize the order (eventually there will be 8 routines that I would like to shuffle between), but it doesnât seem to work.
It still doesnât work so is this what you meant? I havenât run it online yet, so I donât know for sure if the staircase loop works, I wasnât aware there was a problem with it to be honest!
Hi again-
I really appreciate your help! I managed to fix my stair case by looking at your custom scripts and integrating it with my protocol, how ever now Iâm having issues where the stimulus images for the task arenât pulling in to pavlovia when I try to run it online. So like how you have your green and basic gradients, when it goes to present the task the pictures donât show up. I was wondering if you had encountered this problem or had any idea on how to remedy it? Itâs working fine now in psychopy but I need to be able to run it online.
This sounds like a slightly different issue (so maybe mark the solution for the original query here and start a new topic )
In terms of images not showing, there could be a number of reasons for that. So when you open up your new topic please could you also share if there are any error messages when you open developer tools and a link to your gitlab project (there is info on how to do that here Creating online studies from Builder â PsychoPy v2020.2).