Skip to content

Commit 5430705

Browse files
committed
whatsnew, lint
1 parent 944efea commit 5430705

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/sphinx/source/whatsnew/v0.15.1.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Enhancements
3636
* Include `ross` and `faiman_rad` in the allowed models within
3737
:py:meth:`pvlib.pvsystem.PVSystem.get_cell_temperature` (:issue:`2625`, :pull:`2631`)
3838
* Accelerate the internals of :py:func:`~pvlib.solarpostion.ephemeris`. (:pull:`2626`)
39+
* Accelerate the intervals of :py:func:`~pvlib.pvsystem.singlediode` when
40+
`method='lambertw'`. (:pull:`2732`, :pull:`2723`)
3941

4042
Documentation
4143
~~~~~~~~~~~~~

pvlib/singlediode.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pvlib.ivtools.utils import _lambertw_pvlib, _log_lambertw
99

1010
from scipy.optimize import brentq, newton
11-
#from scipy.special import lambertw
11+
1212

1313
# newton method default parameters for this module
1414
NEWTON_DEFAULT_PARAMS = {
@@ -816,7 +816,6 @@ def _lambertw_v_from_i(current, photocurrent, saturation_current,
816816
(Gsh[idx_inf] * a[idx_inf]))
817817
lambertwterm[idx_inf] = _log_lambertw(logargW)
818818

819-
820819
# Eqn. 3 in Jain and Kapoor, 2004
821820
# V = -I*(Rs + Rsh) + IL*Rsh - a*lambertwterm + I0*Rsh
822821
# Recast in terms of Gsh=1/Rsh for better numerical stability.

0 commit comments

Comments
 (0)