state_machine_builder— State Machine Builder

Implementation

class pybpodapi.state_machine.state_machine_builder.StateMachineBuilder(bpod)[source]

Extend state machine with builder logic

Warning

A lot of data structures are kept here for compatibility with original matlab library which are not so python-like. Anyone is welcome to enhance this class but keep in mind that it will affect the whole pybpodapi library.

Parameters:hardware (Hardware) – hardware description associated with this state machine
update_state_numbers()[source]

Replace undeclared states (at the time they were referenced) with actual state numbers

build_message()[source]

Builds state machine to send to Bpod box

Return type:list(int)
build_message_32_bits()[source]

Builds a 32 bit message to send to Bpod box

Return type:list(float)
exception pybpodapi.state_machine.state_machine_builder.StateMachineBuilderError[source]