Skip to content

Commit f10ace8

Browse files
committed
Fix positional arguments.
1 parent 4127d82 commit f10ace8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymatgen/analysis/solar/slme.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def slme(
191191
solar_spectra_photon_flux = solar_spectra_irradiance * (solar_spectra_wavelength_meters / (h * c))
192192

193193
# Calculation of total solar power incoming
194-
power_in = simpson(solar_spectra_irradiance, solar_spectra_wavelength)
194+
power_in = simpson(solar_spectra_irradiance, x=solar_spectra_wavelength)
195195

196196
# calculation of blackbody irradiance spectra
197197
# units of W/(m**3), different than solar_spectra_irradiance!!! (This
@@ -238,13 +238,13 @@ def slme(
238238
* np.pi
239239
* simpson(
240240
blackbody_photon_flux * absorbed_by_wavelength,
241-
solar_spectra_wavelength_meters,
241+
x=solar_spectra_wavelength_meters,
242242
)
243243
)
244244

245245
J_0 = J_0_r / fr
246246

247-
J_sc = e * simpson(solar_spectra_photon_flux * absorbed_by_wavelength, solar_spectra_wavelength)
247+
J_sc = e * simpson(solar_spectra_photon_flux * absorbed_by_wavelength, x=solar_spectra_wavelength)
248248

249249
def J(V):
250250
return J_sc - J_0 * (np.exp(e * V / (k * temperature)) - 1.0)

0 commit comments

Comments
 (0)