You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run your plot_multivariate_classification.ipynb example.
But when I run fetch_pain(), I get this error
`---------------------------------------------------------------------------
ValueError Traceback (most recent call last) /Users/kanamatsuyanagi/fmri_prep/plot_multivariate_classification.ipynb Cell 5 line 1
----> 1 data = fetch_pain()
Unfortunately, I am still having the same issue after reinstalling nltools.
But I will try again soon. This time I am going to rebuild my python environment too.
I am trying to run your plot_multivariate_classification.ipynb example.
But when I run fetch_pain(), I get this error
`---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/Users/kanamatsuyanagi/fmri_prep/plot_multivariate_classification.ipynb Cell 5 line 1
----> 1 data = fetch_pain()
File ~/anaconda3/envs/fmri2/lib/python3.11/site-packages/nltools/datasets.py:135, in fetch_pain(data_dir, resume, verbose)
131 data_dir = _get_dataset_dir(dataset_name, data_dir=data_dir, verbose=verbose)
132 metadata, files = download_collection(
133 collection=collection, data_dir=data_dir, resume=resume, verbose=verbose
134 )
--> 135 return Brain_Data(data=files, X=metadata)
File ~/anaconda3/envs/fmri2/lib/python3.11/site-packages/nltools/data/brain_data.py:230, in Brain_Data.init(self, data, Y, X, mask, **kwargs)
228 if isinstance(X, pd.DataFrame):
229 if self.data.shape[0] != X.shape[0]:
--> 230 raise ValueError("X does not match the correct size " "of data")
231 self.X = X
232 else:
ValueError: X does not match the correct size of data`
I've tried reinstalling your package and recreating my conda environment but I get the same error.
I appreciate any help.
The text was updated successfully, but these errors were encountered: