Skip to content

feat: label frames with the keyboard (UC-1.6) #12

Backlog

Description

@Akadib

Problem

As a labeler, I step through a run and press one key per frame to label it.

Proposed solution

  • diffpy-diffchooser label RUN --db labels.jsonl --user NAME [--every N]
  • Keys: g good, i ice (then l light / h heavy), e empty, arrow keys move, u go back to the last labeled frame to relabel it (nothing is deleted), q quit.
  • A frame that is not good, ice or empty is skipped with the arrow keys and stays unlabeled.
  • Title shows "Puck A, position 07 · frame 153 · 15.3° · label: ice (light)".
  • Every key press writes one record at once (no loss on crash).
  • On restart, opens at the first unlabeled frame.
  • Window logic and key handling are separate from matplotlib, so they can be tested without a display.

Done when

  • Tests drive the key handler with fake events and check the records
  • Manual check: label 200 frames of A07
  • News file added

Activity

  1. added theissue type on Dec 1, 2026
  2. added
    enhancement
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions