TypeError mit der ufunc bitwise_xor

In meinem Programm die Spuren, die den Pfad eines Teilchens, bekomme ich die folgende Fehlermeldung:

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, um herauszufinden, was Los ist. Ich habe nicht alle Instanzen von xor (obwohl ich vermute, dass es sein könnte, codiert, in einer if/else-Anweisung).

InformationsquelleAutor doublefelix | 2014-03-29
Schreibe einen Kommentar