EventOccurrence

class EventOccurrence(event_id, event_name, host_timestamp=None)[source]

Bases: BaseMessage

Message from board that represents state change (an event)

Variables:
  • event_name (str) – name of the event

  • event_id (int) – index of the event

  • board_timestamp (float) – timestamp associated with this event (from bpod)

__init__(event_id, event_name, host_timestamp=None)[source]
Parameters:
  • event_id

  • event_name

  • host_timestamp

Methods

__init__(event_id, event_name[, host_timestamp])

check_type(typestr)

Returns True if the typestr represents the class

fromlist(row)

Returns True if the typestr represents the class

tolist()

Attributes

MESSAGE_COLOR

MESSAGE_TYPE_ALIAS

event_id

event_name

classmethod check_type(typestr)

Returns True if the typestr represents the class

classmethod fromlist(row)[source]

Returns True if the typestr represents the class