bpod_core.bpod.structs#
Data structures used by the bpod module.
Classes#
- class bpod_core.bpod.structs.BpodMessage #
Bases:
StructBase class for all messages exchanged between ServiceHost and ServiceClient.
- class bpod_core.bpod.structs.EventInput #
Bases:
BpodMessageMessage for a single input event.
- class bpod_core.bpod.structs.EventOutput #
Bases:
BpodMessageMessage for a single output action.
- class bpod_core.bpod.structs.EventStateEnd #
Bases:
BpodMessageMessage marking the end of a state.
- class bpod_core.bpod.structs.EventStateStart #
Bases:
BpodMessageMessage marking the start of a state.
- class bpod_core.bpod.structs.EventTrialEnd #
Bases:
BpodMessageMessage marking the end of a trial.
Only published when the hardware exit packet is received: a trial aborted without one publishes neither
EventTrialEndnorEventTrialEndControl- its stream simply ends. SeeEventTrialStartfor the ordering semantics.
- class bpod_core.bpod.structs.EventTrialEndControl #
Bases:
BpodMessageMessage terminating a trial's stream with timing-verification data.
Trails
EventTrialEndand carries the hardware's independent end-of-trial microsecond count, which the reader's timing-violation warning compares withEventTrialEnd.
- class bpod_core.bpod.structs.EventTrialStart #
Bases:
BpodMessageMessage marking the start of a trial.
Trial streams are strictly sequential: all messages between an
EventTrialStartand the nextEventTrialEndbelong to the trial identified by these markers, and a clean trial's stream is terminated by a trailingEventTrialEndControl.
Attributes#
- bpod_core.bpod.structs.BpodEventType#
Vocabulary of the trial DataFrame's
typecolumn.alias of
Literal['TrialStart', 'TrialEnd', 'TrialEndControl', 'StateStart', 'StateEnd', 'InputEvent', 'OutputAction']
- bpod_core.bpod.structs.BpodEventUnion: TypeAlias = bpod_core.bpod.structs.EventTrialStart | bpod_core.bpod.structs.EventStateStart | bpod_core.bpod.structs.EventStateEnd | bpod_core.bpod.structs.EventInput | bpod_core.bpod.structs.EventOutput | bpod_core.bpod.structs.EventTrialEnd | bpod_core.bpod.structs.EventTrialEndControl#
Tagged union of all concrete
BpodMessagesubclasses used for events.