We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c24f6d5 commit e1dd203Copy full SHA for e1dd203
pvlib/tests/test_irradiance.py
@@ -1150,18 +1150,9 @@ def test_dni_dni_clearsky_deprecation():
1150
dhi = pd.Series([100, 90, 50, 50, 50])
1151
zenith = pd.Series([80, 100, 85, 70, 85])
1152
dni_clear = pd.Series([50, 50, 200, 50, 300])
1153
-
1154
with pytest.warns(pvlibDeprecationWarning, match='dni_clear'):
1155
- dni = irradiance.dni(ghi, dhi, zenith,
1156
- clearsky_dni=dni_clear, clearsky_tolerance=2)
1157
- assert_series_equal(dni,
1158
- pd.Series([float('nan'), float('nan'), 400,
1159
- 146.190220008, 573.685662283]))
1160
1161
- dni = irradiance.dni(ghi, dhi, zenith)
1162
1163
- pd.Series([float('nan'), float('nan'), 573.685662283,
1164
+ irradiance.dni(ghi, dhi, zenith,
+ clearsky_dni=dni_clear, clearsky_tolerance=2)
1165
1166
1167
@pytest.mark.parametrize(
0 commit comments