|
16 | 16 | from pvlib import atmosphere, solarposition, tools |
17 | 17 | import pvlib # used to avoid dni name collision in complete_irradiance |
18 | 18 |
|
19 | | -from pvlib._deprecation import pvlibDeprecationWarning |
| 19 | +from pvlib._deprecation import pvlibDeprecationWarning, renamed_kwarg_warning |
20 | 20 | import warnings |
21 | 21 |
|
22 | 22 |
|
@@ -1614,6 +1614,11 @@ def ghi_from_poa_driesse_2023(surface_tilt, surface_azimuth, |
1614 | 1614 | return ghi |
1615 | 1615 |
|
1616 | 1616 |
|
| 1617 | +@renamed_kwarg_warning( |
| 1618 | + since='11.2', |
| 1619 | + old_param_name='clearsky_ghi', |
| 1620 | + new_param_name='ghi_clear', |
| 1621 | + removal="12.0") |
1617 | 1622 | def clearsky_index(ghi, clearsky_ghi, max_clearsky_index=2.0): |
1618 | 1623 | """ |
1619 | 1624 | Calculate the clearsky index. |
@@ -2151,6 +2156,11 @@ def _dirint_bins(times, kt_prime, zenith, w, delta_kt_prime): |
2151 | 2156 | return kt_prime_bin, zenith_bin, w_bin, delta_kt_prime_bin |
2152 | 2157 |
|
2153 | 2158 |
|
| 2159 | +@renamed_kwarg_warning( |
| 2160 | + since='11.2', |
| 2161 | + old_param_name='ghi_clearsky', |
| 2162 | + new_param_name='ghi_clear', |
| 2163 | + removal="12.0") |
2154 | 2164 | def dirindex(ghi, ghi_clearsky, dni_clearsky, zenith, times, pressure=101325., |
2155 | 2165 | use_delta_kt_prime=True, temp_dew=None, min_cos_zenith=0.065, |
2156 | 2166 | max_zenith=87): |
|
0 commit comments