open-discussion > error running test script
Showing 1-2 of 2 posts
Display:
Results per page:
Apr 16, 2020  11:04 PM | skyflyer fun
error running test script
Hi, I am getting the following error when running "pyClusterROI_test.py",
NameError: name 'rank' is not defined
from line 70 of "make_local_connectivity_ones.py"
     if(rank(idx) == 1):

I'm running nmpy 1.18.1

thank you in advance for any  help or suggestions
May 22, 2020  02:05 PM | Rebecca Rebi
RE: error running test script
I ran into the same issue. I found that the original code was made with an older version of numpy than the one I have. The solution was to replace "rank" with "ndim".
https://kite.com/python/docs/numpy.rank