Skip to content

Clarify output variable mapping in calcparams_ functions #2405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pvlib/pvsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1709,6 +1709,8 @@ def calcparams_desoto(effective_irradiance, temp_cell,
Rs = R_s

numeric_args = (effective_irradiance, temp_cell)
# IL: photocurrent, I0: saturation_current, Rs: resistance_series,
# Rsh: resistance_shunt, nNsVth: product of thermal voltage, diode ideality factor and cells in series
out = (IL, I0, Rs, Rsh, nNsVth)

if all(map(np.isscalar, numeric_args)):
Expand Down Expand Up @@ -1830,6 +1832,10 @@ def calcparams_cec(effective_irradiance, temp_cell,
'''

# pass adjusted temperature coefficient to desoto
# Returns the following:
# IL: photocurrent, I0: saturation_current, Rs: resistance_series,
# Rsh: resistance_shunt, nNsVth: product of thermal voltage, diode ideality factor and cells in series

return calcparams_desoto(effective_irradiance, temp_cell,
alpha_sc*(1.0 - Adjust/100),
a_ref, I_L_ref, I_o_ref,
Expand Down Expand Up @@ -1975,6 +1981,8 @@ def calcparams_pvsyst(effective_irradiance, temp_cell,
Rs = R_s

numeric_args = (effective_irradiance, temp_cell)
# IL: photocurrent, I0: saturation_current, Rs: resistance_series,
# Rsh: resistance_shunt, nNsVth: product of thermal voltage, diode ideality factor and cells in series
out = (IL, I0, Rs, Rsh, nNsVth)

if all(map(np.isscalar, numeric_args)):
Expand Down