Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No reward trials somehow still have reward_time listed #52

Open
rachelstephlee opened this issue Oct 31, 2024 · 0 comments
Open

No reward trials somehow still have reward_time listed #52

rachelstephlee opened this issue Oct 31, 2024 · 0 comments

Comments

@rachelstephlee
Copy link
Collaborator

rachelstephlee commented Oct 31, 2024

Related to the #49, sometimes unrewarded trials will have a reward_time listed.

This is found by:

buggy_trials = nwb.df_trials[(nwb.df_trials['reward'] == 0) & (~np.isnan(nwb.df_trials['reward_time']))]

buggy_trials[['reward', 'animal_response', 'reward_time', 'reward_outcome_time']]

Note that the animal_response isn't 2, which means no response, for these trials, so isn't that the animal didn't respond and somehow got a reward_time recorded.

The trials that have this issue drop dramatically if we use the correct goCue timing for t0 in #49.

Bug was found originally in mouse 705599, session 2024-06-27_12-22-52, data asset ID: 659b036d-a469-477d-ba62-95b81e2aac43

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

No branches or pull requests

1 participant