Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indexing error in optimiseHRF #72

Open
JasperVanDenBosch opened this issue Jun 4, 2020 · 1 comment
Open

indexing error in optimiseHRF #72

JasperVanDenBosch opened this issue Jun 4, 2020 · 1 comment

Comments

@JasperVanDenBosch
Copy link
Member

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
Copy link

i'm also getting this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants