Skip to content

Commit 4488e3c

Browse files
committed
fix typo in error eqn
1 parent 1297448 commit 4488e3c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

pvlib/pvsystem.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,9 +2960,8 @@ def pvwatts_dc(effective_irradiance, temp_cell, pdc0, gamma_pdc, temp_ref=25.,
29602960

29612961
# apply Marion's correction if k is anything but zero
29622962
if k is not None:
2963-
err_1 = (k * (1 - (1 - effective_irradiance / 200)**4) /
2964-
(effective_irradiance / 1000))
2965-
err_2 = (k * (1000 - effective_irradiance) / (1000 - 200))
2963+
err_1 = k * (1 - (1 - effective_irradiance / 200)**4)
2964+
err_2 = k * (1000 - effective_irradiance) / (1000 - 200)
29662965

29672966
pdc_marion = np.where(effective_irradiance <= 200,
29682967
pdc * (1 - err_1),

0 commit comments

Comments
 (0)