Repository navigation
Skip duplicated DLS Excitatory sessions - #48
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 19, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 20, 2026
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.
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 throughSeiler2024CSVBehaviorInterface.get_metadata.opto_to_nwbgo from 169 to 34. The 34 are 291.407's two runs and runs of mice thatsubjects_to_skipalready drops (289.407, 289.408, 309.399, 416.405).tests/test_opto_session_deduplication.pybuilds a small opto folder tree with one run in both places (pytest tests: 1 passed; fails onmain).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