Skip to content

Commit 57288e7

Browse files
committed
add deprecation warning
1 parent b21e1eb commit 57288e7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pvlib/clearsky.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
from scipy.linalg import hankel
1313
import h5py
1414

15-
from pvlib import atmosphere, tools
15+
from pvlib import atmosphere, tools, renamed_kwarg_warning
1616
from pvlib.tools import _degrees_to_index
1717

18+
renamed_kwarg_warning('11.2', 'clearsky_ghi', 'ghi_clear', removal="12.0")
19+
renamed_kwarg_warning('11.2', 'clearsky', 'ghi_clear', removal="12.0")
1820

1921
def ineichen(apparent_zenith, airmass_absolute, linke_turbidity,
2022
altitude=0, dni_extra=1364., perez_enhancement=False):

pvlib/irradiance.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
from pvlib import atmosphere, solarposition, tools
1717
import pvlib # used to avoid dni name collision in complete_irradiance
1818

19-
from pvlib._deprecation import pvlibDeprecationWarning
19+
from pvlib._deprecation import pvlibDeprecationWarning, renamed_kwarg_warning
2020
import warnings
2121

22+
renamed_kwarg_warning('11.2', 'clearsky_ghi', 'ghi_clear', removal="12.0")
23+
renamed_kwarg_warning('11.2', 'ghi_clearsky', 'ghi_clear', removal="12.0")
2224

2325
# Deprecation warning based on https://peps.python.org/pep-0562/
2426
def __getattr__(attr):

0 commit comments

Comments
 (0)