Hello,
I am trying to run the spca fit from the drcme package with the h5 file obtained after extracting the vectors with the ipfx package.
When I run this line :
run_spca_fit.main(params_file="default_spca_params.json",output_dir="E:/MARGAUX/drcme_1/drcme-master/output_1",output_code="output_1",datasets=[{"fv_h5_file":"fv_test.h5","metadata_file": None,"dendrite_type": "all","limit_to_cortical_layers": []}])
I get an error telling me that I didn’t fill in the ‘allow_missing_structure’ argument despite it being set as required=False. When I add ‘allow_missing_structure’=False (the default value), I get the same type of error for “need_ramp_spike”,“allow_missing_dendrite” and “id_file”. I set them all to their default value (respectively True, False, None).
run_spca_fit.main(params_file="default_spca_params.json",output_dir="E:/MARGAUX/drcme_1/drcme-master/output_1",output_code="output_1",datasets=[{"fv_h5_file":"fv_test.h5","metadata_file": None,"dendrite_type": "all","limit_to_cortical_layers": [],"allow_missing_structure":False,"need_ramp_spike":True,"allow_missing_dendrite":False,"id_file":None}])
But then I have this error :
Traceback (most recent call last):
File "spca_1.py", line 6, in <module>
run_spca_fit.main(params_file="default_spca_params.json",output_dir="E:/MARGAUX/drcme_1/drcme-master/output_1",output_code="output_1",datasets=[{"fv_h5_file":"fv
_test.h5","metadata_file": None,"dendrite_type": "all","limit_to_cortical_layers": [],"allow_missing_structure":False,"need_ramp_spike":True,"allow_missing_dendrite"
:False,"id_file":None}])
File "E:\MARGAUX\drcme_1\drcme-master\drcme\bin\run_spca_fit.py", line 132, in main
subset_for_spca = spca.select_data_subset(data_for_spca, spca_zht_params)
File "E:\MARGAUX\drcme_1\drcme-master\drcme\spca.py", line 74, in select_data_subset
subset_for_spca[k] = data[:, indices]
IndexError: index 450 is out of bounds for axis 1 with size 447
What seems to be the problem ?
Best,
Margaux