| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Could you please also fix the linting error on line 603 of quality/merit.py by replacing np.NaN with np.nan?
Sorry, something went wrong.
Replaced instances of 'NaN' with 'nan' in test cases for consistency.
|
After replacing np.NaN with np.nan one after the other, the linting process runs through. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
If a complex perm value like perm = 100 + 10j was assigned to an anomaly, the resulting simulated voltages of the forward EIT model were real valued. This is also because of the initialized array in fem.py line 120:
result = np.empty((ex_mat.shape[0], self.kg.shape[0]))
This PR simply changes the data type of the NumPy array to complex.
Finally, the output values for the simulated forward EIT model will be complex.
The following warning will no longer appear:
For the reconstruction algorithms still the following warning will still appear:
ComplexWarning: Casting complex values to real discards the imaginary part
jac[:, e] = np.sum(np.dot(ri[:, ijk], self.se[e]) * f_n[:, ijk], axis=1)