Simulation results show as nan+nanj
-
Hello,
I am trying to extract the results using the python interface but I am getting a nan+nanj for each of the fields in the array.
I have used data= E_field.Data.Field(0)
The same thing happens when I export to matlab. However, when I look at the results in the analysis tab it does show the correct results. Am I missing something?
Thanks!
-
-
maybe your fields are "NaN" in some regions and "complex numbers" in other regions. This happens, for example, if you use a Mask Filter (which replaces values outside the mask by NaN).
Easy way to check:import numpy as np print(np.nanmax(E_field.Data.Field(0)))