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 ownexecutemethod, which is responsible for advancingctx.current_step. Leaf phases useencode_inputs/encode_outputsand we advance time here.