## training_protocol.py The training protocol that moves each subject through the six Bpod training stages of the *Follow the Light* 2AFC task (habituation → delay), deciding the next task after every session. A practically identical one works for the Arduino tasks, changing only the task names. {download}`Download training_protocol.py ` ```{literalinclude} files/training_protocol.py :language: python ```