Skip to content

Commit 953d980

Browse files
committed
fix test
1 parent 5301eb9 commit 953d980

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pvlib/tests/test_irradiance.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,13 +1128,15 @@ def test_dirindex_min_cos_zenith_max_zenith():
11281128

11291129
@fail_on_pvlib_version("0.12")
11301130
def test_dirindex_dni_clearsky_deprecation():
1131+
times = pd.DatetimeIndex(['2014-06-24T12-0700', '2014-06-24T18-0700'])
11311132
ghi = pd.Series([0, 1], index=times)
11321133
ghi_clearsky = pd.Series([0, 1], index=times)
11331134
dni_clear = pd.Series([0, 5], index=times)
11341135
solar_zenith = pd.Series([90, 89.99], index=times)
11351136
with pytest.warns(pvlibDeprecationWarning, match='dni_clear'):
1136-
irradiance.dirindex(ghi, ghi_clearsky, dni_clear, solar_zenith,
1137-
times, min_cos_zenith=0)
1137+
irradiance.dirindex(ghi, ghi_clearsky, dni_clearsky=dni_clear,
1138+
zenith = solar_zenith, times = times,
1139+
min_cos_zenith=0)
11381140

11391141

11401142
def test_dni():

0 commit comments

Comments
 (0)