Open MtKana opened 9 months ago
Hi @MtKana, sorry to hear that you're having trouble downloading the dataset. Unfortunately, I'm not able to replicate your issue on my computer.
There were some issues with neurovault recently with accessing the metadata and we made a few small internal changes.
I'm wondering if it is just an issue with updating your copy of nltools to incorporate these new changes as I don't believe we made a new release yet.
To test this, try uninstalling nltools and then reinstalling it and see if it resolves your issue.
Thank you for your response!
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.