braintools.cogtask.execute_phase

Contents

braintools.cogtask.execute_phase#

braintools.cogtask.execute_phase(phase, ctx)[source]#

Execute a single phase, updating context appropriately.

Compound phases (IS_COMPOUND=True) dispatch to their own execute method, which is responsible for advancing ctx.current_step. Leaf phases use encode_inputs/encode_outputs and we advance time here.

Parameters:
  • phase (Phase) – The phase to execute.

  • ctx (Context) – The trial context.

Return type:

None