-
Notifications
You must be signed in to change notification settings - Fork 32
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
TypeError: unhashable type: 'list' in Loader #391
Comments
Probably list metadata. It looks like it's at the run level. Are you comfortable running the debug shell? You should be able to step up the call stack until you see the variables that are trying to be merged in get_collections. |
I am not sure how to do this, is there documentation somewhere? |
Bad news is that your crashfile format is >>> import pdb
>>> from fitlins.interfaces.bids import LoadBIDSModel
>>> lbm = LoadBIDSModel()
>>> # Here you'll be going off of what's in _report/report.rst
>>> lbm.inputs.x = X
>>> lbm.inputs.y = Y
>>> ...
>>> pdb.run("lbm.run()") |
Here is what I tried:
When I run
|
So when you get the error with
If you do see that, then you should be able to go
And look at |
What is happening is that pandas is trying to merge the meta-data of various "groups" (possibly in this case its runs). However, if the metadata includes nested columns, such that the entry is a list (and the dtype of the column is So it's hard to say specifically what is causing the issue here, but lists as meta-data is BIDS valid. This seems related to: bids-standard/pybids#683 Although now the issue is cropping up w/ meta-data in pandas dfs. |
Environment
Expected Behavior
The model should be returning run-level and session-average contrast maps for a set of conditions in each subject. In some subjects, the model runs fine, but in others, I get the error described below. Nothing obvious seems to differentiate the subjects who do and do not get this error. Of note, all subjects come from the same dataset and were preprocessed with the same fMRIPrep command / version without errors.
Observed Behavior
Model
Steps to Reproduce
--output-spaces MNI152NLin2009cAsym:res-2 --cifti-output 91k
flags--space $space --drop-missing -s $smoothing --desc-label "$desc_label" --estimator nilearn
flagsThe text was updated successfully, but these errors were encountered: