I have the following section of Python:
for j in range(0,T): for x in xrange(len(index)): for y in xrange(x+1,len(index)): if index(y) == index(x): continue
For which I have been attempting to translate successfully from a MATLAB equivalent. In matlab, this operation is simple as follows:
for iter = 1:T for i = 1:length(index) for j = i+1:length(index) if index(j) == index(i) continue; end
However, when I attempt to execute my code I receive a "numpy.ndarray object is not callable" error. Why does this arise, and how would I go about writing this in a proper python manner to successfully execute?