[solved] Resetting counters
So I am trying to figure out how to reset a counter. I have a loop for blocks which contains a loop for trials. In order to loop through blocks and trials I trying to use count_variables as indices, in particular the count_blockloop and count_trialsequence in the inline_code.
So the block works just fine, but its the trial looping that breaks since the counter does not restart with each block and so it goes beyond the number of elements in a dictionary from which the trials are drawn. I tried doing self.experiment.set('counter_trialsequence', 0) in the block inline_code, but that has no effect.
So any other idea of how to restart the counter from within the block inline_code?