1616from pvlib import atmosphere , solarposition , tools
1717import pvlib # used to avoid dni name collision in complete_irradiance
1818
19- from pvlib ._deprecation import pvlibDeprecationWarning
19+ from pvlib ._deprecation import pvlibDeprecationWarning , deprecated
2020import warnings
2121
2222
@@ -1442,7 +1442,7 @@ def _poa_from_ghi(surface_tilt, surface_azimuth,
14421442 Transposition function that includes decomposition of GHI using the
14431443 continuous Erbs-Driesse model.
14441444
1445- Helper function for ghi_from_poa_driesse_2023 .
1445+ Helper function for ghi_from_poa_driesse_2024 .
14461446 '''
14471447 # Contributed by Anton Driesse (@adriesse), PV Performance Labs. Nov., 2023
14481448
@@ -1468,7 +1468,7 @@ def _ghi_from_poa(surface_tilt, surface_azimuth,
14681468 '''
14691469 Reverse transposition function that uses the scalar bisection from scipy.
14701470
1471- Helper function for ghi_from_poa_driesse_2023 .
1471+ Helper function for ghi_from_poa_driesse_2024 .
14721472 '''
14731473 # Contributed by Anton Driesse (@adriesse), PV Performance Labs. Nov., 2023
14741474
@@ -1512,7 +1512,7 @@ def poa_error(ghi):
15121512 return ghi , conv , niter
15131513
15141514
1515- def ghi_from_poa_driesse_2023 (surface_tilt , surface_azimuth ,
1515+ def ghi_from_poa_driesse_2024 (surface_tilt , surface_azimuth ,
15161516 solar_zenith , solar_azimuth ,
15171517 poa_global ,
15181518 dni_extra , airmass = None , albedo = 0.25 ,
@@ -1614,6 +1614,14 @@ def ghi_from_poa_driesse_2023(surface_tilt, surface_azimuth,
16141614 return ghi
16151615
16161616
1617+ ghi_from_poa_driesse_2023 = deprecated (
1618+ since = "0.15.2" ,
1619+ name = "pvlib.irradiance.ghi_from_poa_driesse_2023" ,
1620+ alternative = "pvlib.irradiance.ghi_from_poa_driesse_2024" ,
1621+ removal = "0.17.0" ,
1622+ )(ghi_from_poa_driesse_2024 )
1623+
1624+
16171625def clearsky_index (ghi , ghi_clear , max_clearsky_index = 2.0 ):
16181626 """
16191627 Calculate the clearsky index.
0 commit comments