Skip to content
Snippets Groups Projects
Commit 465152b3 authored by Fabian Schöppach's avatar Fabian Schöppach
Browse files

Update eqe_parser.py: Fix for deprecated scipy function.

`DeprecationWarning: 'scipy.integrate.cumtrapz' is deprecated in favour of 'scipy.integrate.cumulative_trapezoid' and will be removed in SciPy 1.14.0`
parent 8a0820cd
No related branches found
No related tags found
1 merge request!2166Update eqe_parser.py: Fix for deprecated scipy function.
Pipeline #223779 passed
......@@ -266,7 +266,7 @@ class EQEAnalyzer:
energy_AM15 = np.array(df_am15[df_am15.columns[1]])
spectrum_AM15 = np.array(df_am15[df_am15.columns[2]])
spectrum_AM15G_interp = np.interp(x, energy_AM15, spectrum_AM15)
jsc_calc = integrate.cumtrapz(y * spectrum_AM15G_interp, x)
jsc_calc = integrate.cumulative_trapezoid(y * spectrum_AM15G_interp, x)
jsc = max(jsc_calc * q * 1e4)
return jsc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment