Home > other >  Python, LightPipes value of the type of the Field to numpy. The abs () operation
Python, LightPipes value of the type of the Field to numpy. The abs () operation

Time:11-14

When running the program error
Traceback (the most recent call last) :
The File "E:/PY/psfseperate/double/doublepointsim PY", line 78, in & lt; module>
Temp=np. Abs (Farray)
TypeError: bad operand type for abs () : 'the Field'

Error code
 F_c=LP. Fresnel (pre_distance F_incorehent) 
F_obj=LP. MultIntensity (obj, F_c)
Farray=np. Array (F_obj)

Temp=np. Abs (Farray)


Tried to convert the field type to another, but cannot be successful, because they don't support for the field type conversion, could you tell me how to change to,

CodePudding user response:

After another wall bumps bumps!