AllenNeuralDynamics / AllenNeuralDynamics/aind-dynamic-foraging-data-utils

No reward trials somehow still have reward_time listed

Abierto
#52 7 comentarios 0 reacciones 1 asignado Reclamado por @rachelstephlee Ver en GitHub
Lenguaje dominante
Python
Estrellas
2
Forks
0
Merge medio
1 d 10 h
PR fusionados (30 d)
3

Descripción

Related to the https://github.com/AllenNeuralDynamics/aind-dynamic-foraging-data-utils/issues/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 https://github.com/AllenNeuralDynamics/aind-dynamic-foraging-data-utils/issues/49.

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.