Skip to content

Commit 54f61ec

Browse files
authored
move scheduled deprecations from 0.13 to 0.14 (#2475)
1 parent 62535f8 commit 54f61ec

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pvlib/irradiance.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,7 +1627,7 @@ def ghi_from_poa_driesse_2023(surface_tilt, surface_azimuth,
16271627
since='0.11.2',
16281628
old_param_name='clearsky_ghi',
16291629
new_param_name='ghi_clear',
1630-
removal="0.13.0")
1630+
removal="0.14.0")
16311631
def clearsky_index(ghi, ghi_clear, max_clearsky_index=2.0):
16321632
"""
16331633
Calculate the clearsky index.
@@ -2172,12 +2172,12 @@ def _dirint_bins(times, kt_prime, zenith, w, delta_kt_prime):
21722172
since='0.11.2',
21732173
old_param_name='ghi_clearsky',
21742174
new_param_name='ghi_clear',
2175-
removal="0.13.0")
2175+
removal="0.14.0")
21762176
@renamed_kwarg_warning(
21772177
since='0.11.2',
21782178
old_param_name='dni_clearsky',
21792179
new_param_name='dni_clear',
2180-
removal="0.13.0")
2180+
removal="0.14.0")
21812181
def dirindex(ghi, ghi_clear, dni_clear, zenith, times, pressure=101325.,
21822182
use_delta_kt_prime=True, temp_dew=None, min_cos_zenith=0.065,
21832183
max_zenith=87):
@@ -3662,7 +3662,7 @@ def _get_dirint_coeffs():
36623662
since='0.11.2',
36633663
old_param_name='clearsky_dni',
36643664
new_param_name='dni_clear',
3665-
removal="0.13.0")
3665+
removal="0.14.0")
36663666
def dni(ghi, dhi, zenith, dni_clear=None, clearsky_tolerance=1.1,
36673667
zenith_threshold_for_zero_dni=88.0,
36683668
zenith_threshold_for_clearsky_limit=80.0):

tests/test_irradiance.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ def test_dirindex(times):
11121112
equal_nan=True)
11131113

11141114

1115-
@fail_on_pvlib_version("0.13")
1115+
@fail_on_pvlib_version("0.14")
11161116
def test_dirindex_ghi_clearsky_deprecation():
11171117
times = pd.DatetimeIndex(['2014-06-24T18-1200'])
11181118
ghi = pd.Series([1038.62], index=times)
@@ -1157,7 +1157,7 @@ def test_dirindex_min_cos_zenith_max_zenith():
11571157
assert_series_equal(out, expected)
11581158

11591159

1160-
@fail_on_pvlib_version("0.13")
1160+
@fail_on_pvlib_version("0.14")
11611161
def test_dirindex_dni_clearsky_deprecation():
11621162
times = pd.DatetimeIndex(['2014-06-24T12-0700', '2014-06-24T18-0700'])
11631163
ghi = pd.Series([0, 1], index=times)
@@ -1188,7 +1188,7 @@ def test_dni():
11881188
146.190220008, 573.685662283]))
11891189

11901190

1191-
@fail_on_pvlib_version("0.13")
1191+
@fail_on_pvlib_version("0.14")
11921192
def test_dni_dni_clearsky_deprecation():
11931193
ghi = pd.Series([90, 100, 100, 100, 100])
11941194
dhi = pd.Series([100, 90, 50, 50, 50])
@@ -1291,7 +1291,7 @@ def test_clearsky_index():
12911291
assert_series_equal(out, expected)
12921292

12931293

1294-
@fail_on_pvlib_version("0.13")
1294+
@fail_on_pvlib_version("0.14")
12951295
def test_clearsky_index_clearsky_ghi_deprecation():
12961296
with pytest.warns(pvlibDeprecationWarning, match='ghi_clear'):
12971297
ghi, clearsky_ghi = 200, 300

0 commit comments

Comments
 (0)