(0,0,np.random.randint(0,2,Nsize))
The first two elements there aren't t
or dt
. They're both 0. As such, the tuple comparison tries to compare the arrays in the 3rd slot and finds that that doesn't produce a meaningful boolean result. Did you mean to have something meaningful in the first two slots?