Skip to content

Commit fe8055c

Browse files
committed
STY: fix flake8 whitespace and blank line errors
1 parent 343fbe9 commit fe8055c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pvlib/irradiance.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,7 +1984,7 @@ def dirint(ghi, solar_zenith, times, pressure=101325., use_delta_kt_prime=True,
19841984
SERI/TR-215-3087, Golden, CO: Solar Energy Research Institute, 1987.
19851985
"""
19861986
scalar_input = np.isscalar(solar_zenith)
1987-
1987+
19881988
disc_out = disc(ghi, solar_zenith, times, pressure=pressure,
19891989
min_cos_zenith=min_cos_zenith, max_zenith=max_zenith)
19901990
airmass = disc_out['airmass']
@@ -1999,7 +1999,6 @@ def dirint(ghi, solar_zenith, times, pressure=101325., use_delta_kt_prime=True,
19991999
dirint_coeffs = _dirint_coeffs(times, kt_prime, solar_zenith, w,
20002000
delta_kt_prime)
20012001

2002-
20032002
# Perez eqn 5
20042003
dni = disc_out['dni'] * dirint_coeffs
20052004

@@ -2164,7 +2163,6 @@ def _dirint_bins(times, kt_prime, zenith, w, delta_kt_prime):
21642163
return kt_prime_bin, zenith_bin, w_bin, delta_kt_prime_bin
21652164

21662165

2167-
21682166
def dirindex(ghi, ghi_clear, dni_clear, zenith, times, pressure=101325.,
21692167
use_delta_kt_prime=True, temp_dew=None, min_cos_zenith=0.065,
21702168
max_zenith=87):

tests/test_irradiance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,7 @@ def test_dirindex_min_cos_zenith_max_zenith():
11391139
expected = pd.Series([nan, 5.], index=times)
11401140
assert_series_equal(out, expected)
11411141

1142+
11421143
def test_dirint_scalar_inputs():
11431144
"""Scalar numeric inputs return scalar float output. GH #2751"""
11441145
times = pd.DatetimeIndex(['2023-06-21 12:00'], tz='UTC')
@@ -1168,6 +1169,7 @@ def test_dirint_scalar_inputs():
11681169
)
11691170
assert isinstance(result_series, pd.Series)
11701171

1172+
11711173
def test_dni():
11721174
ghi = pd.Series([90, 100, 100, 100, 100])
11731175
dhi = pd.Series([100, 90, 50, 50, 50])

0 commit comments

Comments
 (0)