New Counterbalance Routine Question counterbalance.group = none?

If this template helps then use it. If not then just delete and start from scratch.

Mac
PsychoPy version (e.g. 1.84.x): 2024.2.0 (same behavior in 2024.1.0)
**Standard Standalone? Y

I’m trying to counterbalance to create 4 groups and end up with 25 participants in each group.

This is my first time using the counterbalance standalone, and in a later routine I print print(counterbalance.group) to console to see what values it generated (It looks like it should be 0, 1, 2, 3 for my groups).

However, it just prints ‘none’. Any idea what is going on here or what I’ve done wrong or am misunderstanding about this?

The Counterbalance Routine is at the beginning of my sequence, and the print command is at Begin Routine of the following routine, beg_exp, where I define a few other things in a code chunk.

image

I’ve just come across this post and wonder if you managed to solve it. Locally, the counterbalance routine creates a json file to store the allocations. Do you have one in your experiment folder? It should have been created automatically.

Actually, I did get it working. What I think I did was delete the experiment I’d been working on and start from scratch. I never figured out what I did wrong, but doing that got everything working. I must have missed a step or done something wrong the first go-round.

I do have the JSON, and it populates correctly now:

1 Like