print "ERRRORRRR" raise TypeError("ARf") print "---Testing good call: complex Non Linear set with Median" # Feed it with numpy matrices sigNumber = 3 NLinput_data = np.concatenate((input_data, 0.42 * np.random.randn(N, sigNumber - 1)), axis=1) NLinput_data = NLinput_data.T print NLinput_data.shape NLprojectionMatrix_comp = np.zeros(NLinput_data.shape) projResult = np.zeros((N, 1)) res = parallelProjections.project_mclt_NLset( NLinput_data, scoreTree, NLprojectionMatrix_comp, projResult, pre_twidVec, post_twidVec, i, j, L, 0 ) A = np.median((NLprojectionMatrix_comp) ** 2, axis=0) # plt.figure() # plt.plot(A) # plt.plot(projResult,'r:') # plt.draw() # plt.draw() assert np.sum((A.reshape(projResult.shape) - projResult) ** 2) == 0 if res is not None: print "--- Ok", scoreTree else: print "ERRRORRRR" raise TypeError("ARf")