Skip to content

pvsystem.calcparams_cec() does not propagate parameters #1215

Closed

Description

@Peque

Describe the bug

The function calls calcparams_desoto with hardcoded reference values.

pvlib-python/pvlib/pvsystem.py

Lines 1850 to 1855 in 40ba4bd

return calcparams_desoto(effective_irradiance, temp_cell,
alpha_sc*(1.0 - Adjust/100),
a_ref, I_L_ref, I_o_ref,
R_sh_ref, R_s,
EgRef=1.121, dEgdT=-0.0002677,
irrad_ref=1000, temp_ref=25)

This means the function is silently ignoring its inputs, yielding incorrect results that may go unnoticed.

Expected behavior

The function parameters are propagated into the calcparams_desoto call. In particular: EgRef, dEgdT, irrad_ref, temp_ref

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions