Skip to content

Commit f7ca02d

Browse files
committed
fix typo
1 parent bbc792e commit f7ca02d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pvlib/ivtools/sdm/_fit_desoto_pvsyst_sandia.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from pvlib.pvsystem import singlediode, v_from_i
1111
from pvlib.ivtools.utils import rectify_iv_curve, _numdiff
12-
from pvlib.pvsystem import _pvsyst_rsh
12+
from pvlib.pvsystem import _pvsyst_Rsh
1313

1414

1515
def _initial_iv_params(ivcurves, ee, voc, isc, rsh, nnsvth):
@@ -168,8 +168,9 @@ def _extract_sdm_params(ee, tc, iph, io, rs, rsh, n, u, specs, const,
168168
# Find parameters for Rsh equation
169169

170170
def fun_rsh(x, rshexp, ee, e0, rsh):
171-
tf = np.log10(
172-
_pvsyst_rsh(ee, x[1], x[0], R_sh_exp, e0) - np.log10(rsh)
171+
tf = (
172+
np.log10(_pvsyst_Rsh(ee, x[1], x[0], R_sh_exp, e0))
173+
- np.log10(rsh)
173174
)
174175
return tf
175176

0 commit comments

Comments
 (0)