Skip to content

Commit 28a94d5

Browse files
author
기윤호/백엔드팀/서비스개발부문
committed
Replace lowercase utc with uppercase
1 parent a36c5b5 commit 28a94d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pvlib/tests/test_clearsky.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def test_ineichen_altitude():
191191

192192
def test_lookup_linke_turbidity():
193193
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')
195195
# expect same value on 2014-06-24 0000 and 1200, and
196196
# diff value on 2014-06-25
197197
expected = pd.Series(
@@ -203,7 +203,7 @@ def test_lookup_linke_turbidity():
203203

204204
def test_lookup_linke_turbidity_leapyear():
205205
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')
207207
# expect same value on 2016-06-24 0000 and 1200, and
208208
# diff value on 2016-06-25
209209
expected = pd.Series(
@@ -215,7 +215,7 @@ def test_lookup_linke_turbidity_leapyear():
215215

216216
def test_lookup_linke_turbidity_nointerp():
217217
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')
219219
# expect same value for all days
220220
expected = pd.Series(np.array([3., 3., 3.]), index=times)
221221
out = clearsky.lookup_linke_turbidity(times, 32.125, -110.875,
@@ -225,7 +225,7 @@ def test_lookup_linke_turbidity_nointerp():
225225

226226
def test_lookup_linke_turbidity_months():
227227
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')
229229
expected = pd.Series(
230230
np.array([2.89918032787, 2.97540983607, 3.19672131148]), index=times
231231
)
@@ -235,7 +235,7 @@ def test_lookup_linke_turbidity_months():
235235

236236
def test_lookup_linke_turbidity_months_leapyear():
237237
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')
239239
expected = pd.Series(
240240
np.array([2.89918032787, 2.97540983607, 3.19672131148]), index=times
241241
)

0 commit comments

Comments
 (0)