If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Win10 PsychoPy version (e.g. 1.84.x): 2024.2.4 Standard Standalone? (y/n) If not then what?: Standalone
Hello, in older versions of PsychoPy I could access the number of remaining trials in a trials loop named trials with trials.nRemaining. This is no longer possible. Is there another variable which gives me the number of remaining trials (or blocks or whatever is counted down)?
nRemaining worked up to version 2024.1.5 From 2024.2.0 it is no longer working. Any advice would be helpful.
.nTotal still works. So YourLoopName.nTotal - YourLoopName.thisN should give you YourLoopName.nRemaining (or whatever you want to call the variable). I would not use n.Remaining. It may work again in future versions.
I’ve never used trials.nRemaining but I suspect that it breaking is an unintended consequence of the new functions which allow you to rewind and skip trials.