You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use scipy's new optimize.elementwise functions #2497
These functions can likely provide significant speed-ups for single-diode equation calculations. For example, rerunning the benchmark in #974 (comment) using the new find_root function gives this timing comparison for bishop88_i_from_v ("chandrupatla" is the new scipy function):
The find_minimum function could likely speed up the lambertw approach as well, although I have not benchmarked it against our _golden_sect_DataFrame function.
The question is: when can we start using these in pvlib? The required scipy version is quite new, and not available for python 3.9. Must we wait a couple years until our minimum scipy is v1.15? Or should we add the functionality now, and just raise an error if the installed version of scipy is insufficient?
Activity
cwhanse commentedon Jul 8, 2025
I'm in favor, if the error message suggests that the fix is to select a different method or to update scipy.
kandersolar commentedon Oct 3, 2025
To-do list for this issue:
method='chandrupatla'topvlib.pvsystemfunctions:singlediode,i_from_v,v_from_i,max_power_pointmethod='chandrupatla'topvlib.singlediodefunctions:bishop88_mpp,bishop88_v_from_i,bishop88_i_from_v_golden_sect_DataFramewithfind_minimum