Skip to content

Bug in make_local_connectivity_ones.py #7

@xychen-ION

Description

@xychen-ION

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions