@@ -1059,7 +1059,7 @@ def test_erbs_all_scalar():
10591059
10601060def test_dirindex (times ):
10611061 ghi = pd .Series ([0 , 0 , 1038.62 , 254.53 ], index = times )
1062- ghi_clearsky = pd .Series (
1062+ ghi_clear = pd .Series (
10631063 np .array ([0. , 79.73860422 , 1042.48031487 , 257.20751138 ]),
10641064 index = times
10651065 )
@@ -1073,7 +1073,7 @@ def test_dirindex(times):
10731073 )
10741074 pressure = 93193.
10751075 tdew = 10.
1076- out = irradiance .dirindex (ghi , ghi_clearsky , dni_clearsky ,
1076+ out = irradiance .dirindex (ghi , ghi_clear , dni_clearsky ,
10771077 zenith , times , pressure = pressure ,
10781078 temp_dew = tdew )
10791079 dirint_close_values = irradiance .dirint (ghi , zenith , times ,
@@ -1100,26 +1100,26 @@ def test_dirindex_min_cos_zenith_max_zenith():
11001100 # times don't have any physical relevance
11011101 times = pd .DatetimeIndex (['2014-06-24T12-0700' , '2014-06-24T18-0700' ])
11021102 ghi = pd .Series ([0 , 1 ], index = times )
1103- ghi_clearsky = pd .Series ([0 , 1 ], index = times )
1103+ ghi_clear = pd .Series ([0 , 1 ], index = times )
11041104 dni_clearsky = pd .Series ([0 , 5 ], index = times )
11051105 solar_zenith = pd .Series ([90 , 89.99 ], index = times )
11061106
1107- out = irradiance .dirindex (ghi , ghi_clearsky , dni_clearsky , solar_zenith ,
1107+ out = irradiance .dirindex (ghi , ghi_clear , dni_clearsky , solar_zenith ,
11081108 times )
11091109 expected = pd .Series ([nan , nan ], index = times )
11101110 assert_series_equal (out , expected )
11111111
1112- out = irradiance .dirindex (ghi , ghi_clearsky , dni_clearsky , solar_zenith ,
1112+ out = irradiance .dirindex (ghi , ghi_clear , dni_clearsky , solar_zenith ,
11131113 times , min_cos_zenith = 0 )
11141114 expected = pd .Series ([nan , nan ], index = times )
11151115 assert_series_equal (out , expected )
11161116
1117- out = irradiance .dirindex (ghi , ghi_clearsky , dni_clearsky , solar_zenith ,
1117+ out = irradiance .dirindex (ghi , ghi_clear , dni_clearsky , solar_zenith ,
11181118 times , max_zenith = 90 )
11191119 expected = pd .Series ([nan , nan ], index = times )
11201120 assert_series_equal (out , expected )
11211121
1122- out = irradiance .dirindex (ghi , ghi_clearsky , dni_clearsky , solar_zenith ,
1122+ out = irradiance .dirindex (ghi , ghi_clear , dni_clearsky , solar_zenith ,
11231123 times , min_cos_zenith = 0 , max_zenith = 100 )
11241124 expected = pd .Series ([nan , 5. ], index = times )
11251125 assert_series_equal (out , expected )
0 commit comments