There are two arguments call '--start-latency' (default = -200) and '--emeg-t-start' (default = -200) in run_gridsearch. However, when the -emeg-t-start is larger than --start-latency, the do_gridsearch function will run into error (the 11 is a fake channel number):
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/imaging/projects/cbu/kymata/analyses/tianyi/kymata-core/invokers/run_gridsearch.py", line 327, in <module>
main()
File "/imaging/projects/cbu/kymata/analyses/tianyi/kymata-core/invokers/run_gridsearch.py", line 275, in main
es = do_gridsearch(
^^^^^^^^^^^^^^
File "/imaging/projects/cbu/kymata/analyses/tianyi/kymata-core/kymata/gridsearch/plain.py", line 121, in do_gridsearch
emeg_reshaped[:, split_i + (j * n_splits), :] = emeg_values[:, j, split_start:split_stop:downsample_rate]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not broadcast input array from shape (11,0) into shape (11,400)
Here '--start-latency' is -200 and '--emeg-t-start' is set to 0
There are two arguments call '--start-latency' (default = -200) and '--emeg-t-start' (default = -200) in run_gridsearch. However, when the -emeg-t-start is larger than --start-latency, the do_gridsearch function will run into error (the 11 is a fake channel number):
Here '--start-latency' is -200 and '--emeg-t-start' is set to 0