Skip to content

Commit 73e80d3

Browse files
Update pvlib/pvsystem.py
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
1 parent 551e722 commit 73e80d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pvlib/pvsystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2957,7 +2957,7 @@ def pvwatts_dc(effective_irradiance, temp_cell, pdc0, gamma_pdc, temp_ref=25.,
29572957
(1 + gamma_pdc * (temp_cell - temp_ref)))
29582958

29592959
# apply Marion's correction if k is anything but zero
2960-
if k != 0:
2960+
if k is not None:
29612961
err_1 = (k * (1 - (1 - effective_irradiance / 200)**4) /
29622962
(effective_irradiance / 1000))
29632963
err_2 = (k * (1000 - effective_irradiance) / (1000 - 200))

0 commit comments

Comments
 (0)