AllenInstitute / visual_behavior_analysis

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

cannot query specimen driver line: can't adapt type 'numpy.int64' #750

Closed dougollerenshaw closed 3 years ago

dougollerenshaw commented 3 years ago

When l run the following code block:

from visual_behavior.data_access import utilities
from visual_behavior.data_access import loading

experiment_table = loading.get_filtered_ophys_experiment_table(release_data_only=True).reset_index()
ophys_experiment_id = experiment_table.sample(random_state = 1).iloc[0]['ophys_experiment_id']
session = loading.get_ophys_dataset(ophys_experiment_id)
lick_groom_preds = session.behavior_movie_predictions.copy()

I get the following in my jupyter output: image It's overwhelming when running in a loop.

I've been able to isolate at least two of the warning outputs to this line: https://github.com/AllenInstitute/visual_behavior_analysis/blob/3d23e2abf1a93d58102834c7d5d366f9b29a8b80/visual_behavior/data_access/loading.py#L421 But I'm not sure why I see a total of 8 warnings, and I also don't know why I get the statement resampling mesoscope 2P frame times printed four times.

dougollerenshaw commented 3 years ago

fixed in PR #749