Repository navigation
Accepted the Zhang lab's naming variants, corrected mislabeled recordings and deleted stale downloads - #63
Merged
Conversation
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
marked this pull request as ready for review
November 19, 2026 16:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #62.
Zhang converter:
CamNN-Calibration-…videos,Session1/sess1/Sess1orMergein recording names, no underscore beforemerged.rec, andSession_1//Session1/folders (answers Q13).correctionssection inconfig.yaml. Each was checked against the headstage serials in its merged files. A correction's reason is appended to the NWBnotes.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:
Session_<N>/folders. It had been missing 22.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
🤖 Generated with Claude Code
https://claude.ai/code/session_018Gd63VAaXEtYzbNRniezVW