Skip to content

fix: incorrect annotation of rewards - #74

Merged
arjunsridhar12345 merged 16 commits into
devfrom
73-incorrect-annotation-of-rewards
Aug 19, 2026
Merged

fix: incorrect annotation of rewards#74
arjunsridhar12345 merged 16 commits into
devfrom
73-incorrect-annotation-of-rewards

Conversation

@arjunsridhar12345

@arjunsridhar12345 arjunsridhar12345 commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Attempts to close #73. Running on the same session as the one in #73, there are now 248 unignored trials which lines up with the metadata, and 23 auto water R that are not earned reward which should line up as seen here: https://github.com/AllenNeuralDynamics/DF-Refactoring/issues/155. I ran the 08_11_864253_auto_water_check.ipynb notebook with an nwb generated from this branch. In addition, the warnings are gone now so maybe this fixes those also

Updates made:

  • Use response software event to correlate with the valve opening. Using this index mapping, use the trial outcome to determine if the trial was rewarded or not. Logic for earned and auto annotation then remains the same

The docstrings and comments are probably excessive and some of it is AI generated but it helped me understand the logic so I'm inclined to keep it

UPDATE: uses the trial metadata to determine type of auto reward in trial table, and then labels in acquisition remain the same

Comment thread src/dynamic_foraging_processing/utils/rewards.py Outdated
@arjunsridhar12345
arjunsridhar12345 marked this pull request as ready for review August 19, 2026 23:07
@arjunsridhar12345
arjunsridhar12345 merged commit bb61792 into dev Aug 19, 2026
3 checks passed
@arjunsridhar12345
arjunsridhar12345 deleted the 73-incorrect-annotation-of-rewards branch August 19, 2026 23:21
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.

2 participants