numpy ndarray is not callable?
ndarray' object is not callable means that you tried to call a numpy array as a function. Avoid the for loop for XY in xy: Instead read up how the numpy arrays are indexed and handled. Also try and avoid . txt files if you are dealing with matrices.