Skip to content

Manifest format

A bundle is a folder with a manifest.yaml or manifest.yml plus the video and stream files it references; paths are relative to the folder. Import it with detail recording import --bundle or the GUI's Import bundle… (see Many recordings at once). The whole manifest is validated before anything is created, and a key not in the tables below is refused, naming it.

Manifest

A bundle manifest: the schema_version and the list of recordings to import.

Field Type Default Description
schema_version integer 1 Manifest schema version (must be 1).
recordings list of recording required The recordings to create; at least one.

Recording

One recording to create, with its optional video parts, streams, and metadata.

Field Type Default Description
id string required Recording id: [A-Za-z0-9_-], unique in the manifest, not already in the experiment.
metadata mapping — Grouping variables written to the experiment metadata: any keys but recording_id, which is the recording's own id. A blank value is stored blank.
video list of strings — Ordered video parts, relative paths; multiple parts must share a resolution, and a frame rate within 1%.
streams list of stream — Aligned time-series streams.

Stream

One aligned time-series stream to import onto the recording.

Field Type Default Description
name string required Stream name, path-safe ([A-Za-z0-9_-]) and unique within the recording.
importer string required A registered importer id (e.g. medpc); see the stream inputs table below.
raw string required The primary data file, relative to the bundle folder.
aux mapping — Importer-specific extra inputs, keyed by input name (e.g. MED-PC's program).
config <class 'dict'> — The importer's own parameters, matching its config model (e.g. a CSV's time_column / time_kind / channels). Omit for an importer that takes none.
offset_ns integer 0 Alignment offset applied to the stream clock, in nanoseconds.

Stream inputs by importer

Every stream needs a primary raw file. Each importer also declares the extra aux inputs it needs, keyed by name:

Importer Name Required aux inputs
behavior_csv Behavior labels (interval CSV) —
boris Behavior labels (BORIS tabular events export) —
events_csv Events CSV —
medpc MED-PC (Med Associates) program (.mpc)
timeseries_csv Time-series CSV (sensor data) —

Example

recordings:
  - id: boxA
    video:                     # ordered parts; must share fps + resolution
      - boxA_am.mp4
      - boxA_pm.mp4
    metadata:                  # grouping variables (any keys)
      treatment: drug_A
      sex: M
    streams:
      - name: medpc
        importer: medpc
        raw: PX22.txt
        aux:
          program: Golden_Liq_SelfAdmin.MPC
  - id: boxB                   # a video-only recording
    video: [boxB.mp4]