I am using the counterbalance component in version PsychoPy V2024.2.4. When running online I can get the counterbalancing to work; however, the shelf does not iterate correctly.
I am using code by @Becca in her Youtube video, however, I believe this is outdated.
In Psychopy I call my counterbalance routine “counterbalance_lists” and use this as my key in the pavlovia shelf.
Now, I add a code chunk to run the correct list based on the shelf (based of @Becca’s code)
This will counterbalance the lists correctly online (yay!). However, the shelf counts do not iterate correctly. One thing I noticed is if I change the value from “group” to “groups” it will iterate correctly in the shelf, but wont run my experiment correctly.
Any guidance/resources are greatly appreciated!
Here is link to my experiment online: HW_LDT_1 [PsychoPy].
Here is link to my repo: Jason Geller / HW_LDT_1 · GitLab.
The iteration in the shelf seems to be pretty inconsistent. Does this have to do with me trying to access the experiment multiple times?
Please could you clarify what you mean here.
When I run the experiment, the counter (or “shelf”) for a given list sometimes increments and sometimes doesn’t. For example, if I run list3, the shelf counter increases by 1 as expected. But if I run list3 again, it doesn’t always increment. I’m trying to figure out why the shelf isn’t consistently updating each time the list is run.
Are you clicking on the refresh icon on the shelf to check for updates?
Are you ending the experiment? If not then the tally will stay as reserved.
I am ending the experiment early and have refreshed the shelf.
Shouldn’t the reserved index increase every time a list is encountered?
Could this be an issue with me taking it on the same computer/having the same IP address?
It could be confused about whether you are starting a new session. The reserved index should increase every time you restart the experiment. Do you have multiple counterbalance routines in the same experiment?
Not in the same routine. I have 4 sep list routines and I use the list_rep conditionals at the top of my code to skip the routine if it does not match the counterbalance group chosen.
It now seems to be working so not sure what was going on.
@wakecarter If a slot is reserved will it not run that particular condition?
In theory that should be the case.
1 Like
Gotcha. I was wondering why a large number of participants where getting allocated to only two groups and not the others. I reset it.