Skip to content

Commit 400f2c1

Browse files
committed
fix a couple warnings
1 parent 283d80f commit 400f2c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pvlib/ivtools/sdm/pvsyst.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,9 @@ def fit_pvsyst_iec61853_sandia(effective_irradiance, temp_cell,
425425
atol=temperature_tolerance)
426426

427427
if alpha_sc is None:
428-
i_sc_ref = float(i_sc[is_g_stc & is_t_stc])
429428
mu_i_sc = _fit_tempco_pvsyst_iec61853_sandia(i_sc[is_g_stc],
430429
temp_cell[is_g_stc])
430+
i_sc_ref = float(i_sc[is_g_stc & is_t_stc].item())
431431
alpha_sc = mu_i_sc * i_sc_ref
432432

433433
if beta_mp is None:
@@ -553,7 +553,7 @@ def _fit_diode_ideality_factor_pvsyst_iec61853_sandia(
553553
y = v_mp + i_mp*R_s - v_oc
554554

555555
results = sm.OLS(endog=y, exog=x).fit()
556-
gamma_ref = results.params[0]
556+
gamma_ref = results.params['x1']
557557
return gamma_ref, 0
558558

559559

0 commit comments

Comments
 (0)