2014-03-29 14 views
7

In meinem Programm, das den Weg eines Teilchenspuren aus, bekomme ich folgende Fehlermeldung:mit ufunc bitwise_xor Typeerror

Traceback (most recent call last): 
    File "C:\Users\Felix\Google Drive\Research\particles.py", line 154, in <module> 
    bfield += b_X(r_p(r,pos[2]))*(r_p(r,pos[2])/r) 
    *((r-r_p(r,pos[2]))**2+pos[2]**2)^(-1/2)*np.array 
    ([(1-r_p(r,pos[2])/r)*pos[0],(1-r_p(r,pos[2])/r)*pos[1],pos[2]]) 

TypeError: ufunc 'bitwise_xor' not supported for the input types, 
and the inputs could not be safely coerced to any supported types 
according to the casting rule ''safe'' 

Ich kann nicht scheinen zu finden, was los ist. Ich habe keine Instanzen von xor (obwohl ich vermute, dass es in einer if/else-Anweisung codiert sein könnte).

Antwort