Skip to content

Commit 9716bc8

Browse files
committed
linter
1 parent 3594450 commit 9716bc8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pvlib/snow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def coverage_nrel(snowfall, poa_irradiance, temp_air, surface_tilt,
163163
if snow_depth is not None:
164164
# no coverage when there's no snow on the ground
165165
# described in [2] to avoid non-sliding snow for low-tilt systems.
166-
snow_coverage[snow_depth<=0] = 0.
166+
snow_coverage[snow_depth <= 0] = 0.
167167
# clean up periods where row is completely uncovered
168168
return snow_coverage.clip(lower=0)
169169

pvlib/tests/test_snow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def test_coverage_nrel_hourly_with_snow_depth():
6767
slide_amt = slide_amount_coefficient * sind(surface_tilt)
6868
covered = 1.0 - slide_amt * np.array([0, 1, 2, 3, 4, 5, 6, 7])
6969
expected = pd.Series(covered, index=dt)
70-
expected[snow_depth<=0] = 0
70+
expected[snow_depth <= 0] = 0
7171
assert_series_equal(expected, snow_coverage)
7272

7373

0 commit comments

Comments
 (0)