data_types

class aind_behavior_services.data_types.DataType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: StrEnum

ARRAY = 'array'[source]
BOOLEAL = 'boolean'[source]
NULL = 'null'[source]
NUMBER = 'number'[source]
OBJECT = 'object'[source]
STRING = 'string'[source]
pydantic model aind_behavior_services.data_types.DataTypes[source]

Bases: SchemaVersionedModel

Config:
  • json_schema_extra: dict = {‘x-abstract’: ‘True’}

Fields:
Validators:
field render_synch_state: RenderSynchState [Required][source]
field software_event: SoftwareEvent [Required][source]
field version: Literal['0.1.1'] = '0.1.1'[source]
Validated by:
class Config[source]

Bases: object

json_schema_extra = {'x-abstract': 'True'}[source]
pydantic model aind_behavior_services.data_types.RenderSynchState[source]

Bases: BaseModel

Fields:
field frame_index: int | None = None[source]

The frame index of the event

Constraints:
  • ge = 0

field frame_timestamp: float | None = None[source]

The timestamp of the frame

Constraints:
  • ge = 0

field sync_quad_value: float | None = None[source]

The synchronization quad value

Constraints:
  • ge = 0

  • le = 1

pydantic model aind_behavior_services.data_types.SoftwareEvent[source]

Bases: BaseModel

A software event is a generic event that can be used to track any event that occurs in the software.

Fields:
field data: Any | None = None[source]

The data of the event

field data_type: DataType = DataType.NULL (alias 'dataType')[source]

The data type of the event

field data_type_hint: str | None = None[source]

The data type hint of the event

field frame_index: int | None = None[source]

The frame index of the event

Constraints:
  • ge = 0

field frame_timestamp: float | None = None[source]

The timestamp of the frame

field name: str [Required][source]

The name of the event

field timestamp: float | None = None[source]

The timestamp of the event

field timestamp_source: TimestampSource = TimestampSource.NULL[source]

The source of the timestamp

class aind_behavior_services.data_types.TimestampSource(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: StrEnum

HARP = 'harp'[source]
NULL = 'null'[source]
RENDER = 'render'[source]