Repository navigation
calcparams_desoto gets lost in the darkness #2354
Replies: 3 comments 1 reply
|
In a similar fashion, |
I think it returns inf as it should unless all the inputs are floats, because in which case numpy is not used. Shouldn't be too hacky to fix this. |
|
This inconsistency is a classic edge case. The cleanest fix in calcparams_desoto would be to cast scalar floats to a 0-d numpy array internally, or explicitly handle the float case by returning np.inf for R_sh when effective_irradiance == 0. This avoids the error without changing the physics. I'd be happy to submit a small PR for this if the maintainers think it's worth it. |
Uh oh!
There was an error while loading. Please reload this page.
#340 added support for solving the single-diode equation for an "ideal" PV device that has infinite shunt resistance (equivalent to zero shunt conductance). I see several
pvlibissues and discussions concerning very low and zero irradiance causing problems forpvlib.pvsystem.calcparams_desoto, and I just hit this issue myself. Concerning this edge case, which appears to lead to a lot of hacky workarounds, has the community discussed/tried makingcalcparams_desotoreturnfloat("inf")forR_shwhen the irradiance is zero?All reactions