Skip to content

Accepted the Zhang lab's naming variants, corrected mislabeled recordings and deleted stale downloads - #63

Merged
CodyCBakerPhD merged 2 commits into
mainfrom
claude/tender-wright-6ra9g9
Nov 19, 2026
Merged

CodyCBakerPhD merged 2 commits into
mainfrom
claude/tender-wright-6ra9g9

Conversation

@CodyCBakerPhD

@CodyCBakerPhD CodyCBakerPhD commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Part of #62.

Zhang converter:

  • Accepts the lab's spelling variants: CamNN-Calibration-… videos, Session1/sess1/Sess1 or Merge in recording names, no underscore before merged.rec, and Session_1//Session1/ folders (answers Q13).
  • Finds merged files sitting loose in the recording folder.
  • Reads five mislabeled recordings through a new corrections section in config.yaml. Each was checked against the headstage serials in its merged files. A correction's reason is appended to the NWB notes.

On the current archive, 107 of 111 recordings now convert, up from 74. The rest are three recordings with no merged files and a test recording.

Dispatch:

  • Discovers recordings in Zhang's Session_<N>/ folders. It had been missing 22.
  • Downloads with dandi download --sync do, so local files that are no longer on EMBER are deleted, along with the folders that leaves empty. Each deletion is logged.

Merging changes the Zhang converter hash, so the next nightly run reconverts every Zhang recording.

Prompts

make an issue about Zhang as well with a table

yeah accept the Calibration spelling

adapt to those recording names with extra Session1 stuff, etc

ok adapt to the missing underscore for the .rec; explain the animal 0236 and 0235 and other naming mismatch to me in more detail

yeah do all three

🤖 Generated with Claude Code

https://claude.ai/code/session_018Gd63VAaXEtYzbNRniezVW

The Zhang converter skipped recordings over spelling differences:

- Calibration videos named CamNN-Calibration-... (60 files) are now read
  as calibration videos alongside CamNN-cal-....
- Recording names with a session token (Session1, sess1, Sess1) or a
  Merge prefix on the date are now recognized. The session label stays
  the date and time.
- A merged file without the underscore before "merged" is now found.
- A day's two recordings in Session_1/ and Session_2/ (or Session1/)
  subfolders, each with its own Videos/, are now discovered. This
  answers Q13.

On the current archive this takes the convertible recordings from 74 to
101 of 111. The animal and headstage mismatches in #62 stay pending.

Co-Authored-By: Claude Code 2.1.328 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Gd63VAaXEtYzbNRniezVW
Zhang converter:
- A new corrections section in config.yaml reads five recordings whose
  names contradict their files (03.25, 04.25, 04.08 15:59, 02355 and
  03.08 13:03). Each was checked against the headstage serials in its
  merged files' headers. A correction can rename a recording or point at
  an animal's merged file, which is used only while it exists, so a fix
  on the lab's side takes over. Its reason is appended to the NWB notes.
- Merged files sitting loose in the recording folder, as on 03.30, are
  found.

On the current archive this takes the convertible recordings from 101
to 107 of 111.

Dispatch:
- The Zhang session pattern now covers the Session_<N>/ folders, whose
  22 recordings dispatch was not discovering.
- The incoming download passes --sync do, so local files the archive no
  longer has are deleted, then the folders that leaves empty. Each
  deletion is logged.

Co-Authored-By: Claude Code 2.1.328 / Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Gd63VAaXEtYzbNRniezVW
@CodyCBakerPhD CodyCBakerPhD changed the title Accepted the Zhang lab's naming variants and Session folders Accepted the Zhang lab's naming variants, corrected mislabeled recordings and deleted stale downloads Nov 19, 2026
@CodyCBakerPhD CodyCBakerPhD self-assigned this Nov 19, 2026
@CodyCBakerPhD
CodyCBakerPhD marked this pull request as ready for review November 19, 2026 16:16
@CodyCBakerPhD
CodyCBakerPhD merged commit 2908fce into main Nov 19, 2026
14 checks passed
@CodyCBakerPhD
CodyCBakerPhD deleted the claude/tender-wright-6ra9g9 branch November 19, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants