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

incorrect key name in ophys_experiment.metadata #2540

Open DowntonCrabby opened 1 year ago

DowntonCrabby commented 1 year ago

Describe the bug In the metadata attribute (a dictionary) for ophys experiment dataset objects there is currently a key called 'experiment_container_id'. This key should be named 'ophys_container_id'.

metadata_incorrect_key_name

To Reproduce

import allensdk
from allensdk.brain_observatory.behavior.behavior_project_cache import VisualBehaviorOphysProjectCache
local_data_storage_directory =  path to local directory
cache = VisualBehaviorOphysProjectCache.from_s3_cache(cache_dir=local_data_storage_directory)
ophys_experiment = cache.get_behavior_ophys_experiment(ophys_experiment_id=951980471)
ophys_experiment.metadata

Expected behavior Key to be ophys_container_id

Actual Behavior key is experiment_container_id

Environment (please complete the following information):

danielsf commented 1 year ago

@DowntonCrabby

Can you try pulling rc/2.16.1 and working off of that branch? This should be fixed.