Skip to content

Commit 9ff3970

Browse files
committed
undo bad pull
1 parent c08abb3 commit 9ff3970

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Enhancements
2727
:py:func:`~pvlib.singlediode.bishop88_mpp`,
2828
:py:func:`~pvlib.singlediode.bishop88_v_from_i`, and
2929
:py:func:`~pvlib.singlediode.bishop88_i_from_v`. (:issue:`2497`, :pull:`2498`)
30-
* Accelerate :py:func:`~pvlib.pvsystem.singlediode` when scipy>=1.15 is installed. (:issue:`2497`, :pull:`2567`)
30+
* Accelerate :py:func:`~pvlib.pvsystem.singlediode` when scipy>=1.15 is
31+
installed. (:issue:`2497`, :pull:`2567`)
3132

3233

3334
Documentation

pvlib/singlediode.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -930,9 +930,7 @@ def _lambertw(photocurrent, saturation_current, resistance_series,
930930
# switch to old golden section method
931931
p_mp, v_mp = _golden_sect_DataFrame(params, 0., v_oc * 1.14,
932932
_pwr_optfcn)
933-
934-
# Find Imp using Lambert W
935-
i_mp = _lambertw_i_from_v(v_mp, **params)
933+
i_mp = p_mp / v_mp
936934

937935
# Find Ix and Ixx using Lambert W
938936
i_x = _lambertw_i_from_v(0.5 * v_oc, **params)

0 commit comments

Comments
 (0)