Skip to content

Store the rewards of left footshock probes as left rewards - #75

Merged
pauladkisson merged 1 commit into
mainfrom
left_shock
Oct 20, 2026
Merged

pauladkisson merged 1 commit into
mainfrom
left_shock

Conversation

@pauladkisson

Copy link
Copy Markdown
Member

Fixes #73

Details (AI-generated)
  • In seiler_2024_metadata.yaml, Footshock Degradation Left now maps array D to left_reward_times and array B, which the program never writes, to right_reward_times.
  • Seiler2024CSVBehaviorInterface takes the names for LeftRewardTs (B) and RightRewardTs (D) from the same map.
  • Tests: a MED-PC run read through the map (tests/test_footshock_rewards.py), and a left footshock CSV laid out like the real exports (tests/test_csv_footshock.py). pytest tests: 32 passed; both new tests fail on main.
  • An audit notebook kept outside the repo (left_shock.ipynb) shows the program lines that write B and D. In the 159 published left footshock files with rewards, all 8822 right_reward_times fall on left nose pokes. It reconverts the 154 left footshock probes the fixed conversion still writes (the other 8 are "Unknown" duplicates removed in Skip duplicated DLS Excitatory sessions #48). Each now has left_reward_times and no right_reward_times, and after the rename every dataset matches the published file, except footshock_times in the 8 CSV sessions, which Read footshock times from CSV exports #54 added.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pauladkisson
pauladkisson merged commit 35ef8f8 into main Oct 20, 2026
@pauladkisson
pauladkisson deleted the left_shock branch October 20, 2026 19:10
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.

Rewards in left footshock probes are stored as right rewards

1 participant