Skip to content

fetch_pain() issue #422

Open
Open
@MtKana

Description

@MtKana

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions