Skip to content

Commit bed78f9

Browse files
committed
fix shallow copy issue
1 parent 85016fa commit bed78f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pvlib/pvsystem.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2881,7 +2881,7 @@ def scale_voltage_current_power(data, voltage=1, current=1):
28812881
def pvwatts_dc(effective_irradiance, temp_cell, pdc0, gamma_pdc, temp_ref=25.,
28822882
k=None, cap_adjustment=False):
28832883
r"""
2884-
Implement NREL's PVWatts (Version 5) DC power model.
2884+
Implement NREL's PVWatts (Version 5) DC power model.
28852885
28862886
Parameters
28872887
----------
@@ -2963,7 +2963,8 @@ def pvwatts_dc(effective_irradiance, temp_cell, pdc0, gamma_pdc, temp_ref=25.,
29632963

29642964
# apply Marion's correction if k is anything but zero
29652965
if k is not None:
2966-
pdc_marion = pdc
2966+
pdc_marion = (effective_irradiance * 0.001 * pdc0 *
2967+
(1 + gamma_pdc * (temp_cell - temp_ref)))
29672968
err_1 = k * (1 - (1 - effective_irradiance / 200)**4)
29682969
err_2 = k * (1000 - effective_irradiance) / (1000 - 200)
29692970

0 commit comments

Comments
 (0)