Skip to content

Commit a36c5b5

Browse files
author
기윤호/백엔드팀/서비스개발부문
committed
Revert tests.test_irradiance.times
1 parent 747aec8 commit a36c5b5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pvlib/tests/test_irradiance.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
def times():
2929
# must include night values
3030
return pd.date_range(start='20140624', freq='6h', periods=4,
31-
tz='utc').tz_convert('US/Arizona')
31+
tz='US/Arizona')
3232

3333

3434
@pytest.fixture
@@ -112,7 +112,7 @@ def test_get_extra_radiation_nrel_numba(times):
112112
# and reset to no-numba state
113113
irradiance.get_extra_radiation(times, method='nrel')
114114
assert_allclose(result,
115-
[1322.375560, 1322.338415, 1322.302221, 1322.266984])
115+
[1322.332316, 1322.296282, 1322.261205, 1322.227091])
116116

117117

118118
def test_get_extra_radiation_invalid():
@@ -602,17 +602,17 @@ def test_poa_components(irrad_data, ephem_data, dni_et, relative_airmass):
602602

603603
@pytest.mark.parametrize('pressure,expected', [
604604
(93193, [[830.46567, 0.79742, 0.93505],
605-
[676.09497, 0.63776, 3.02102]]),
605+
[676.18340, 0.63782, 3.02102]]),
606606
(None, [[868.72425, 0.79742, 1.01664],
607-
[680.66679, 0.63776, 3.28463]]),
607+
[680.73800, 0.63782, 3.28463]]),
608608
(101325, [[868.72425, 0.79742, 1.01664],
609-
[680.66679, 0.63776, 3.28463]])
609+
[680.73800, 0.63782, 3.28463]])
610610
])
611611
def test_disc_value(pressure, expected):
612612
# see GH 449 for pressure=None vs. 101325.
613613
columns = ['dni', 'kt', 'airmass']
614614
times = pd.DatetimeIndex(['2014-06-24T1200', '2014-06-24T1800'],
615-
tz='utc').tz_convert('America/Phoenix')
615+
tz='America/Phoenix')
616616
ghi = pd.Series([1038.62, 254.53], index=times)
617617
zenith = pd.Series([10.567, 72.469], index=times)
618618
out = irradiance.disc(ghi, zenith, times, pressure=pressure)
@@ -1079,7 +1079,7 @@ def test_dirindex(times):
10791079
pressure=pressure,
10801080
use_delta_kt_prime=True,
10811081
temp_dew=tdew).values
1082-
expected_out = np.array([np.nan, 0., 748.31562753, 630.72592644])
1082+
expected_out = np.array([np.nan, 0., 748.31562800, 630.73752100])
10831083

10841084
tolerance = 1e-8
10851085
assert np.allclose(out, expected_out, rtol=tolerance, atol=0,

0 commit comments

Comments
 (0)