static_gratings 자극을 사용하여 실험 데이터를 분석합니다. SDK 설명서에 따르면 get_stimulus_template 함수는 쿼리 된 실험에서 사용 된 모든 자극을 인수로 사용할 수 있다고합니다. 실험에서 list_stimuli()를 호출하여 static_gratings가 사용 된 자극인지 확인했습니다.Allen Brain Observatory - get_stimulus_template이 static_gratings와 작동하지 않습니다.
은 내가이 역 추적/오류 ('static_gratings') get_stimulus_template를 실행하면이와
Traceback (most recent call last):
File "<ipython-input-46-be84d6ea7546>", line 1, in <module>
sg_scenes = expData.get_stimulus_template('static_gratings')
File "/Users/randallellis/anaconda/lib/python2.7/site-packages/allensdk/core/brain_observatory_nwb_data_set.py", line 373, in get_stimulus_template
image_stack = f['stimulus']['templates'][stim_name]['data'].value
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/Users/ilan/minonda/conda-bld/h5py_1490025880382/work/h5py/_objects.c:2846)
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/Users/ilan/minonda/conda-bld/h5py_1490025880382/work/h5py/_objects.c:2804)
File "/Users/randallellis/anaconda/lib/python2.7/site-packages/h5py/_hl/group.py", line 169, in __getitem__
oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/Users/ilan/minonda/conda-bld/h5py_1490025880382/work/h5py/_objects.c:2846)
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/Users/ilan/minonda/conda-bld/h5py_1490025880382/work/h5py/_objects.c:2804)
File "h5py/h5o.pyx", line 190, in h5py.h5o.open (/Users/ilan/minonda/conda-bld/h5py_1490025880382/work/h5py/h5o.c:3740)
KeyError: "Unable to open object (Object 'static_gratings_image_stack' doesn't exist)"
어떤 도움에 감사드립니다.