Charestlab / pyGLMdenoise

python implementation of GLMdenoise
6 stars 6 forks source link

indexing error in optimiseHRF #72

Open JasperVanDenBosch opened 4 years ago

JasperVanDenBosch commented 4 years ago
data loaded
Optimising HRF...
     optimising hrf :1
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-7-36da088ea53a> in <module>
      7 design = [pandas.read_csv(f, delimiter='\t') for f in event_files]
      8 gd = GLMdenoise(params=params)
----> 9 gd.fit(design, data, TR)
     10 gd.plot_figures(out.create_report())
     11 for image_name in ['pseudo_t_stats']:
/usr/local/miniconda/lib/python3.7/site-packages/glmdenoise/pyGlmdenoise.py in fit(self, design, data, tr)
    100                 self.tr,
    101                 self.params['hrf'],
--> 102                 polymatrix)
    103             whitened_design = None
    104             whitened_data = None
/usr/local/miniconda/lib/python3.7/site-packages/glmdenoise/utils/optimiseHRF.py in optimiseHRF(design, data, tr, hrfknobs, combinedmatrix, numforhrf, hrfthresh, hrffitmask)
    402
    403             # stack design across runs
--> 404             stackdesign = np.vstack(convdesign)
    405
    406             # estimate the amplitudes (output: conditions x voxels)
/usr/local/miniconda/lib/python3.7/site-packages/numpy/core/shape_base.py in vstack(tup)
    232
    233     """
--> 234     return _nx.concatenate([atleast_2d(_m) for _m in tup], 0)
    235
    236 def hstack(tup):
ValueError: all the input array dimensions except for the concatenation axis must match exactly
kalexandriabond commented 3 years ago

i'm also getting this error.