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
foraging2 translator is missing change times #73
Comments
@dougollerenshaw there's only one line changed on the fix/lload_licks branch & it should not affect this issue indeed, when I use the fix/lload_licks branch, I still see the error you note on the file you are using. |
drilling into this file more, it looks like there simply weren't any non-aborted catch trials in this session... no_change = ~pd.isnull(core_data['trials']['change_time'])
print (core_data['trials'][no_change]['initial_image_name']==core_data['trials'][no_change]['change_image_name']).sum() yeilds |
Hmm... on 'fix/load_licks' branch:
returns 50 on master:
returns 0 |
I get are you using an older version of that branch? |
Yes, I was using an older version of that branch. Sorry. Now that you've merged it in, it's displaying the same incorrect behavior for me. But there are catch trials in this session. I just went back to the 'foraging-2' branch that Chris committed on 4/20/18 at 1:06 and that is giving me 50 catch trials. |
Well, it looks like I'm wrong. There don't appear to be any catch trials in this session. When I look directly at the core_data['trials'] object, I can't find any trials where the initial_image_name matches the final_image_name. This returns an empty dataframe:
That would partially explain issue 65. Tagging @derricw. Are we correct that there are no catch trials being generated by sessions from real mice on cluster D? |
note: the core_data['trials'] object is not "direct"... it is the object we are building from derric's foraging2 output |
Is it possible that core_data['trials'] is missing the catch trials somehow? |
yes, absolutely. I'm investigating to see where it might have broken |
found the problem. working on a fix. |
OK. One more bit of information. In this particular PKL file, I looked in core_data['trials'] for all changes with a first lick and a change time. Trial index 37 looks like a catch trial, but we don't have access to the initial and change stimuli in order to confirm that.
|
Just had a quick conversation with @mochic about this. He's on it! Thanks Chris. |
@neuromusic @mochic : No catch trials are being identified when loading Foraging2 data with the master branch. When I revert to the 'fix/load_licks' branch and reload the same PKL file, the problem resolves, so it would appear not to be an issue with the underlying Foraging2 data.
Minimum code to replicate error (on master branch):
The text was updated successfully, but these errors were encountered: