@@ -1059,7 +1059,7 @@ def test_erbs_all_scalar():
1059
1059
1060
1060
def test_dirindex (times ):
1061
1061
ghi = pd .Series ([0 , 0 , 1038.62 , 254.53 ], index = times )
1062
- ghi_clearsky = pd .Series (
1062
+ ghi_clear = pd .Series (
1063
1063
np .array ([0. , 79.73860422 , 1042.48031487 , 257.20751138 ]),
1064
1064
index = times
1065
1065
)
@@ -1073,7 +1073,7 @@ def test_dirindex(times):
1073
1073
)
1074
1074
pressure = 93193.
1075
1075
tdew = 10.
1076
- out = irradiance .dirindex (ghi , ghi_clearsky , dni_clearsky ,
1076
+ out = irradiance .dirindex (ghi , ghi_clear , dni_clearsky ,
1077
1077
zenith , times , pressure = pressure ,
1078
1078
temp_dew = tdew )
1079
1079
dirint_close_values = irradiance .dirint (ghi , zenith , times ,
@@ -1100,26 +1100,26 @@ def test_dirindex_min_cos_zenith_max_zenith():
1100
1100
# times don't have any physical relevance
1101
1101
times = pd .DatetimeIndex (['2014-06-24T12-0700' , '2014-06-24T18-0700' ])
1102
1102
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 )
1104
1104
dni_clearsky = pd .Series ([0 , 5 ], index = times )
1105
1105
solar_zenith = pd .Series ([90 , 89.99 ], index = times )
1106
1106
1107
- out = irradiance .dirindex (ghi , ghi_clearsky , dni_clearsky , solar_zenith ,
1107
+ out = irradiance .dirindex (ghi , ghi_clear , dni_clearsky , solar_zenith ,
1108
1108
times )
1109
1109
expected = pd .Series ([nan , nan ], index = times )
1110
1110
assert_series_equal (out , expected )
1111
1111
1112
- out = irradiance .dirindex (ghi , ghi_clearsky , dni_clearsky , solar_zenith ,
1112
+ out = irradiance .dirindex (ghi , ghi_clear , dni_clearsky , solar_zenith ,
1113
1113
times , min_cos_zenith = 0 )
1114
1114
expected = pd .Series ([nan , nan ], index = times )
1115
1115
assert_series_equal (out , expected )
1116
1116
1117
- out = irradiance .dirindex (ghi , ghi_clearsky , dni_clearsky , solar_zenith ,
1117
+ out = irradiance .dirindex (ghi , ghi_clear , dni_clearsky , solar_zenith ,
1118
1118
times , max_zenith = 90 )
1119
1119
expected = pd .Series ([nan , nan ], index = times )
1120
1120
assert_series_equal (out , expected )
1121
1121
1122
- out = irradiance .dirindex (ghi , ghi_clearsky , dni_clearsky , solar_zenith ,
1122
+ out = irradiance .dirindex (ghi , ghi_clear , dni_clearsky , solar_zenith ,
1123
1123
times , min_cos_zenith = 0 , max_zenith = 100 )
1124
1124
expected = pd .Series ([nan , 5. ], index = times )
1125
1125
assert_series_equal (out , expected )
0 commit comments