OS: macOS PsychoPy version: 3.2.3 Standard Standalone?: y What are you trying to achieve?: stop a routine from being run
I tried to stop a routine from being run by putting continueRoutine = False in the Begin Routine tab of a code component (and placing this component at the top of the routine). However, this setting is overwritten once the code is generated and thus has no effect:
# ------Prepare to start Routine "trial"-------
# update component parameters for each repeat
continueRoutine = False
continueRoutine = True
Looking further into this, by setting “Use Psychopy version” in the experiment settings, the behaviour was correct up until version 3.1.5, and then from 3.2.0 onwards, the old behaviour re-emerged, of resetting continueRoutine to True immediately before the routine begins.
So Jan, as a short-term workaround you could tell Builder to use version 3.1.5 in the “Experiment settings” of your file (assuming that doesn’t cause issues with some other things that have changed recently, including the improved timing that came with version 3.2.0).
The first time you do this, there may be a slight delay, as PsychoPy will be downloading some of its 3.1.5 code in the background as required.
For us, the offending line in the repository is here: