AllenInstitute / visual_behavior_analysis

Python package for analyzing behavioral data for Brain Observatory: Visual Behavior
Other
21 stars 6 forks source link

Fixes an edge case in extended_stimulus_processing.licks_each_flash #817

Closed alexpiet closed 2 years ago

alexpiet commented 2 years ago

esp.licks_each_flash and esp.rewards_each_flash annotate the rows of session.stimulus_presentations with the licks and rewards that happen during each flash. Currently they look for strict inclusion with a set time range relative to the stimulus onset. If the lick or reward happens at exactly the moment the stimulus starts the lick or reward is not assigned to any stimulus. I've fixed that by making the test of for the start of the time range inclusive ">=" rather than ">"