AllenInstitute / visual_behavior_analysis

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

Three experiments crash when data is loaded #787

Closed alexpiet closed 3 years ago

alexpiet commented 3 years ago

oeid = [908381682, 851093289, 1050730732] dataset = loading.get_ophys_dataset(oeid[0])

prints two warnings (from the SDK) saying "This session has no rewards data" Then throws an attribution error 'NoneType' object has no attribute 'value'

The SDK

dataset = cache.get_behavior_ophys_experiment(oeid[0])

prints the same two warnings about no reward data, but returns without an error. However

dataset.rewards

throws the same attribute error

Checking the experiment table, it looks like all three of these experiments were passive, so the rewards table should be empty

ophys_experiment_table = loading.get_platform_paper_experiment_table() ophys_experiment_table.reset_index().query('ophys_experiment_id in @oeid')['passive']

alexpiet commented 3 years ago

This SDK issue is likely the underlying cause: https://github.com/AllenInstitute/AllenSDK/issues/2239

alexpiet commented 3 years ago

This will be resolved with SDK rc/2.13.1