Skip to content

Commit b376910

Browse files
committed
another instance replaced
1 parent 7ac643f commit b376910

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pvlib/pvarray.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
import numpy as np
1212
import pandas as pd
1313
from scipy.optimize import curve_fit
14-
from scipy.special import exp10, lambertw
14+
from scipy.special import exp10
15+
from pvlib.ivtools.utils import _lambertw_pvlib
1516

1617

1718
def pvefficiency_adr(effective_irradiance, temp_cell,
@@ -483,7 +484,7 @@ def batzelis(effective_irradiance, temp_cell,
483484

484485
# Eq 9-10
485486
del0 = (1 - beta_voc * t0) / (50.1 - alpha_sc * t0)
486-
w0 = np.real(lambertw(np.exp(1/del0 + 1)))
487+
w0 = _lambertw_pvlib(np.exp(1/del0 + 1))
487488

488489
# Eqs 27-28
489490
alpha_imp = alpha_sc + (beta_voc - 1/t0) / (w0 - 1)

0 commit comments

Comments
 (0)