Skip to content

Commit 250af5a

Browse files
committed
fix the right typo this time...
1 parent 4488e3c commit 250af5a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pvlib/pvsystem.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,8 +2960,10 @@ 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-
err_2 = k * (1000 - effective_irradiance) / (1000 - 200)
2963+
err_1 = (k * (1 - (1 - effective_irradiance / 200)**4) /
2964+
(effective_irradiance / 1000))
2965+
err_2 = (k * (1000 - effective_irradiance) / (1000 - 200) /
2966+
(effective_irradiance / 1000))
29652967

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

0 commit comments

Comments
 (0)