Visual behaviour and 2P data set rewards

Hi,

I would like to get whether an animal was rewarded or not per image presentation from the SDK datasets but cannot find it. There is a ‘insertsession’.rewards file but it’s of length 70 instead of ~4400 or the number of image presentations.

Thanks!
Tristan

Hi Tristan,

The rewards dataframe contains the timestamps of each reward that occurred during the session. To associate the rewards with each image presentation, you have to do a little bit of translation between the two dataframes to find the reward times that fall between each image presentation start and end time.

I’ve made an example jupyter notebook here that shows how to do this.

-Marina

1 Like