-
Notifications
You must be signed in to change notification settings - Fork 26
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
Bug in make_local_connectivity_ones.py #7
Comments
append function in older versions of scipy (I suspect this package is written with older versions of scipy) ignored the wrong dimension passed as the third argument and when I read the code for make_local_connectivity_ones the matrix dimension is wrong. So, I think if you pass zero as the third argument the code must work: sparse_w=append(sparse_w,R[nzndx],0) |
Thanks mehrshadg! |
Hi @mehrshadg @xychen-ION @ccraddock, I got the same issue running the code (scipy 1.2.1, numpy 1.16.4, python 2.7).
does anyone have an update, or know which numpy/scipy version is compatible? Thanks |
I am getting the same AxisError. Please let me know of any updates. |
Same error here. I changed 1 to 0 as @mehrshadg said and I have to change 'dtype' of variable 'a' to 'int' in binfile_parcellation.py to run all the scripts. But unfortunately, all spatial correlation or time correlation output seems wrong. |
I have installed numpy, scipy and nibabel with python version 2.7 and I am trying to test the code on the test data. But I meet an error when I run make_local_connectivity_ones. The error shows below:
"
sparse_w=append(sparse_w,R[nzndx],1)
Traceback (most recent call last):
File "", line 1, in
sparse_w=append(sparse_w,R[nzndx],1)
File "/home/fbip018/anaconda3/envs/cxy_image_3/lib/python2.7/site-packages/numpy/lib/function_base.py", line 5003, in append
return concatenate((arr, values), axis=axis)
IndexError: axis 1 out of bounds [0, 1)
"
This error happens in line 155 in make_local_connectivity_ones.py which is the code "sparse_w=append(sparse_w,R[nzndx],1)". I don't know how to deal with it and I am sure the numpy is installed.
Thank you
The text was updated successfully, but these errors were encountered: