AllenInstitute / AllenSDK

code for reading and processing Allen Institute for Brain Science data
https://allensdk.readthedocs.io/en/latest/
Other
340 stars 150 forks source link

Error while extracting stimulus presentations | Visual Coding – Neuropixels 2019 #2508

Closed m-abdollahi closed 2 years ago

m-abdollahi commented 2 years ago

facing an error while extracting any information according to stimulus from a session.

steps: 1) cache a session 2) While using .stimulus_presentation or .get_stimulus_table or .stimulus_names

error :{ ValueError Traceback (most recent call last)

in () ----> 1 sessio.stimulus_names

13 frames

/usr/local/lib/python3.7/dist-packages/pandas/core/common.py in is_bool_indexer(key) 137 # Don't raise on e.g. ["A", "B", np.nan], see 138 # test_loc_getitem_list_of_labels_categoricalindex_with_na --> 139 raise ValueError(na_msg) 140 return False 141 return True

ValueError: Cannot mask with non-boolean array containing NA / NaN values }

m-abdollahi commented 2 years ago

error occuring in Allensdk version 2.13.5 , but it works well with 2.13.4 !

aamster commented 2 years ago

@m-abdollahi thanks for catching this. We've fixed this issue in the latest release (2.13.6)

m-abdollahi commented 2 years ago

@aamster YW!