pyprf icon indicating copy to clipboard operation
pyprf copied to clipboard

Stimulus Presentation Create Design Matrix Error

Open bvkennedy opened this issue 5 years ago • 1 comments

I am receiving an error when I run create_design_matrix.py with the default values entered.

Here is the full error message:

Running: C:\pyprf-master\pyprf\stimulus_presentation\code\create_design_matrix.py

Traceback (most recent call last): File "C:\pyprf-master\pyprf\stimulus_presentation\code\create_design_matrix.py", line 552, in crt_design(dicParam) File "C:\pyprf-master\pyprf\stimulus_presentation\code\create_design_matrix.py", line 161, in crt_design aryPosConTmp = np.vstack((aryPosTemp, aryConTmp)).T File "<array_function internals>", line 6, in vstack File "C:\Program Files\Python_36\lib\site-packages\numpy\core\shape_base.py", line 283, in vstack return _nx.concatenate(arrs, 0) File "<array_function internals>", line 6, in concatenate ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 1, the array at index 0 has size 70 and the array at index 1 has size 14

Experiment ended.

bvkennedy avatar Nov 25 '20 20:11 bvkennedy

It's hard to guess what may have gone wrong from the traceback alone. If I remember correctly, the easiest way to create a design matrix is to run /pyprf/pyprf/stimulus_presentation/code/create_design_matrix.py is Psychopy. I would recommend to try different Psychopy version. If possible try Psychopy version 1.83.04.

ingo-m avatar Dec 10 '20 23:12 ingo-m