Skip to content

Skip duplicated DLS Excitatory sessions - #48

Merged
pauladkisson merged 3 commits into
mainfrom
dedupe_sessions
Oct 19, 2026
Merged

pauladkisson merged 3 commits into
mainfrom
dedupe_sessions

Conversation

@pauladkisson

@pauladkisson pauladkisson commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Fixes #47

Details (AI-generated)

In opto_to_nwb, the pass over the date-organized DLS Excitatory files now skips a run when the same subject, start date and start time was already listed from the mouse's treatment folder. A new helper, get_subject_session_start, gives that triple for a session, reading the start from the CSV for CSV exports through Seiler2024CSVBehaviorInterface.get_metadata.

  • Unknown-treatment sessions listed by opto_to_nwb go from 169 to 34. The 34 are 291.407's two runs and runs of mice that subjects_to_skip already drops (289.407, 289.408, 309.399, 416.405).
  • tests/test_opto_session_deduplication.py builds a small opto folder tree with one run in both places (pytest tests: 1 passed; fails on main).
  • An audit notebook kept outside the repo (dedupe_sessions.ipynb) checks each of the 137 published Unknown files against the fixed session list: 135 are now converted only as ChR2 or ChR2Scrambled, and the events in each published pair are identical. 13 Unknown copies also hold footshocks that the CSV copies lack, which is a separate fix in Fix conversion errors found by the nwb-convert benchmark (0.2.0) #43.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pauladkisson and others added 2 commits October 19, 2026 13:11
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

DLS Excitatory runs are converted twice, once with treatment Unknown

1 participant