If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Windows 11 / CachyOS (Linux) — reproduced on both
PsychoPy version (e.g. 2024.2.4 Py 3.8): v2026.1.3
Standard Standalone Installation? (y/n) If not then what?: PsychoPy Studio
Do you want it to also run online? (y/n) no
What are you trying to achieve?:
Using a loop with nReps = 0 around certain routines to skip them during testing (a common workflow for temporarily disabling parts of an experiment in original PsychoPy Builder). Once testing is done, the loop is removed, with the expectation that all routines remain in the timeline as standalone items.
What specifically went wrong when you tried that?:
After deleting a loop (that had nReps = 0) in PsychoPy Studio, only the routines that were inside the loop remain in the experiment timeline. All routines and loops that existed outside of the deleted loop are removed from the timeline entirely.
The outside routines are not lost, they are still visible in the Builder panel and can be manually put back in, but they should not have been removed in the first place.
Steps to reproduce:
- Open PsychoPy Studio and create a new experiment.
- Add several routines to the timeline (e.g. routine_A, routine_B, routine_C).
- Wrap one routine (e.g. routine_B) in a loop. Set nReps = 0.
- Run or save the experiment to confirm the setup works.
- Delete the loop (right-click > remove, or equivalent).
- Observe the timeline.
Expected result: routine_A, routine_B, and routine_C all remain in the timeline; only the loop wrapper is removed.
Actual result: Only routine_B (previously inside the loop) remains. routine_A and routine_C are removed from the timeline.
Link to most relevant existing thread: none found