Skip to content

Add optogenetic stimulation only for LED programs - #56

Merged
pauladkisson merged 4 commits into
mainfrom
opto_programs
Oct 19, 2026
Merged

pauladkisson merged 4 commits into
mainfrom
opto_programs

Conversation

@pauladkisson

@pauladkisson pauladkisson commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Fixes #55

Details (AI-generated)
  • Seiler2024OptogeneticInterface.add_to_nwbfile adds the OptogeneticSeries only for the 14 programs used in the opto experiments that switch on the LED (ON ^STIM in MSNs/*.MPC). Sessions on other programs keep the device and stimulus site with no series, as the probe sessions already did (Shock Probes and Omission Probes from the Opto Experiments Should have empty OptogeneticStimulus #38). This replaces the probe-program list and the assert on Probe Test Habit Training TTL.

  • Sessions whose stimulation times are empty, from rewards or from Z, now return before adding anything, which removes the 8 zero-power placeholder series.

  • tests/test_optogenetic_programs.py covers a non-stimulation program, a STIM program and a scrambled program with empty Z (pytest tests: 3 passed; 2 fail on main).

  • An audit notebook kept outside the repo (opto_programs.ipynb) finds the 166 non-stimulation and 8 zero-power series in 000971 and reconverts those sessions: none has a series now. Five sampled stimulation sessions have series identical to the published files.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pauladkisson
pauladkisson merged commit d1abbc4 into main Oct 19, 2026
@pauladkisson
pauladkisson deleted the opto_programs branch October 19, 2026 22:59
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.

Optogenetic stimulation is added to sessions on programs that never drive the LED

1 participant