@@ -191,7 +191,7 @@ def test_ineichen_altitude():
191
191
192
192
def test_lookup_linke_turbidity ():
193
193
times = pd .date_range (start = '2014-06-24' , end = '2014-06-25' ,
194
- freq = '12h' , tz = 'utc ' ).tz_convert ('America/Phoenix' )
194
+ freq = '12h' , tz = 'UTC ' ).tz_convert ('America/Phoenix' )
195
195
# expect same value on 2014-06-24 0000 and 1200, and
196
196
# diff value on 2014-06-25
197
197
expected = pd .Series (
@@ -203,7 +203,7 @@ def test_lookup_linke_turbidity():
203
203
204
204
def test_lookup_linke_turbidity_leapyear ():
205
205
times = pd .date_range (start = '2016-06-24' , end = '2016-06-25' ,
206
- freq = '12h' , tz = 'utc ' ).tz_convert ('America/Phoenix' )
206
+ freq = '12h' , tz = 'UTC ' ).tz_convert ('America/Phoenix' )
207
207
# expect same value on 2016-06-24 0000 and 1200, and
208
208
# diff value on 2016-06-25
209
209
expected = pd .Series (
@@ -215,7 +215,7 @@ def test_lookup_linke_turbidity_leapyear():
215
215
216
216
def test_lookup_linke_turbidity_nointerp ():
217
217
times = pd .date_range (start = '2014-06-01' , end = '2014-06-02' ,
218
- freq = '12h' , tz = 'utc ' ).tz_convert ('America/Phoenix' )
218
+ freq = '12h' , tz = 'UTC ' ).tz_convert ('America/Phoenix' )
219
219
# expect same value for all days
220
220
expected = pd .Series (np .array ([3. , 3. , 3. ]), index = times )
221
221
out = clearsky .lookup_linke_turbidity (times , 32.125 , - 110.875 ,
@@ -225,7 +225,7 @@ def test_lookup_linke_turbidity_nointerp():
225
225
226
226
def test_lookup_linke_turbidity_months ():
227
227
times = pd .date_range (start = '2014-04-01' , end = '2014-07-01' ,
228
- freq = '1M' , tz = 'utc ' ).tz_convert ('America/Phoenix' )
228
+ freq = '1M' , tz = 'UTC ' ).tz_convert ('America/Phoenix' )
229
229
expected = pd .Series (
230
230
np .array ([2.89918032787 , 2.97540983607 , 3.19672131148 ]), index = times
231
231
)
@@ -235,7 +235,7 @@ def test_lookup_linke_turbidity_months():
235
235
236
236
def test_lookup_linke_turbidity_months_leapyear ():
237
237
times = pd .date_range (start = '2016-04-01' , end = '2016-07-01' ,
238
- freq = '1M' , tz = 'utc ' ).tz_convert ('America/Phoenix' )
238
+ freq = '1M' , tz = 'UTC ' ).tz_convert ('America/Phoenix' )
239
239
expected = pd .Series (
240
240
np .array ([2.89918032787 , 2.97540983607 , 3.19672131148 ]), index = times
241
241
)
0 commit comments