Skip to content

Commit b969039

Browse files
committed
Add deprecation warning
1 parent 69f6c2b commit b969039

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pvlib/pvsystem.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,8 @@ def scale_voltage_current_power(self, data):
845845
for array, data in zip(self.arrays, data)
846846
)
847847

848+
849+
@renamed_kwarg_warning("0.13.0", "g_poa_effective", "effective_irradiance", "0.14.0")
848850
@_unwrap_single_value
849851
def pvwatts_dc(self, effective_irradiance, temp_cell):
850852
"""
@@ -2799,6 +2801,8 @@ def scale_voltage_current_power(data, voltage=1, current=1):
27992801
return df_sorted
28002802

28012803

2804+
from pvlib._deprecation import renamed_kwarg_warning
2805+
@renamed_kwarg_warning("0.12.0", "g_poa_effective", "effective_irradiance", "0.13.0")
28022806
def pvwatts_dc(effective_irradiance, temp_cell, pdc0, gamma_pdc, temp_ref=25.):
28032807
r"""
28042808
Implements NREL's PVWatts DC power model. The PVWatts DC model [1]_ is:

0 commit comments

Comments
 (0)