Skip to content

Add the long labeled-data model - #15

Draft
C-Achard wants to merge 2 commits into
cy/io-wide-readersfrom
cy/io-long-model
Draft

C-Achard wants to merge 2 commits into
cy/io-wide-readersfrom
cy/io-long-model

Conversation

@C-Achard

Copy link
Copy Markdown
Member

LabeledData: one long table, one row per frame and keypoint, that every format converts to and from. It checks columns, dtypes, density and identities when built, and converts to the wide DataFrame and to arrays.

  • Dense: an unlabeled keypoint is a row of NaN, rather than a missing row
  • No individual sentinel: single-animal data has no individual column, as DeepLabCut's three-level header has none.

Its methods only convert to forms that need nothing beyond core dependencies.

@C-Achard C-Achard added io: labeled-data CollectedData and machinelabels files consumer: deeplabcut Needed by or affects DeepLabCut consumer: napari Needed by or affects napari-deeplabcut labels Nov 24, 2026
@C-Achard C-Achard self-assigned this Nov 24, 2026
@C-Achard
C-Achard added this pull request to stack #18 November 24, 2026 16:24
@C-Achard
C-Achard marked this pull request as draft November 24, 2026 16:25
- Rename the package to dlccore.io and add the dlccore license header
- Remove LabeledData.from_wide_df until the wide-to-long conversion it
  calls is added
- Name DataFrames `df`, never `frame`: LabeledData._frame becomes _df
- State in the docstrings that a format behind an optional extra is
  converted by free functions in its own module, not LabeledData methods
- Reword the LabeledDataArrays summary and note 3D support and NPZ
  export as TODO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

consumer: deeplabcut Needed by or affects DeepLabCut consumer: napari Needed by or affects napari-deeplabcut io: labeled-data CollectedData and machinelabels files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant