@@ -792,7 +792,7 @@ def test_ghi_from_poa_driesse(mocker):
792792 surface_azimuth = 180
793793
794794 # test core function
795- output = irradiance .ghi_from_poa_driesse_2023 (
795+ output = irradiance .ghi_from_poa_driesse_2024 (
796796 surface_tilt , surface_azimuth , zenith , azimuth ,
797797 poa_global , dni_extra = 1366.1 )
798798
@@ -802,7 +802,7 @@ def test_ghi_from_poa_driesse(mocker):
802802 # test series output
803803 poa_global = pd .Series ([20 , 300 , 1000 ], index = times )
804804
805- output = irradiance .ghi_from_poa_driesse_2023 (
805+ output = irradiance .ghi_from_poa_driesse_2024 (
806806 surface_tilt , surface_azimuth , zenith , azimuth ,
807807 poa_global , dni_extra = 1366.1 )
808808
@@ -811,7 +811,7 @@ def test_ghi_from_poa_driesse(mocker):
811811 # test full_output option and special cases
812812 poa_global = np .array ([0 , 1500 , np .nan ])
813813
814- ghi , conv , niter = irradiance .ghi_from_poa_driesse_2023 (
814+ ghi , conv , niter = irradiance .ghi_from_poa_driesse_2024 (
815815 surface_tilt , surface_azimuth , zenith , azimuth ,
816816 poa_global , dni_extra = 1366.1 , full_output = True )
817817
@@ -829,13 +829,13 @@ def test_ghi_from_poa_driesse(mocker):
829829 # test exception
830830 xtol = - 3.14159 # negative value raises exception in scipy.optimize.bisect
831831 with pytest .raises (ValueError , match = rf"xtol too small \({ xtol :g} <= 0\)" ):
832- output = irradiance .ghi_from_poa_driesse_2023 (
832+ output = irradiance .ghi_from_poa_driesse_2024 (
833833 surface_tilt , surface_azimuth , zenith , azimuth ,
834834 poa_global , dni_extra = 1366.1 , xtol = xtol )
835835 # test propagation
836836 xtol = 3.141592
837837 bisect_spy = mocker .spy (irradiance , "bisect" )
838- output = irradiance .ghi_from_poa_driesse_2023 (
838+ output = irradiance .ghi_from_poa_driesse_2024 (
839839 surface_tilt , surface_azimuth , zenith , azimuth ,
840840 poa_global , dni_extra = 1366.1 , xtol = xtol )
841841 assert bisect_spy .call_args [1 ]["xtol" ] == xtol
0 commit comments