Closed alexpiet closed 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']
This SDK issue is likely the underlying cause: https://github.com/AllenInstitute/AllenSDK/issues/2239
This will be resolved with SDK rc/2.13.1
rc/2.13.1
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
prints the same two warnings about no reward data, but returns without an error. However
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