Skip to content

Commit 2189952

Browse files
Fix lint errors.
1 parent 079bb48 commit 2189952

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pvlib/bifacial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def merge(reports):
181181
dictionary are extended by those of all subsequent lists."""
182182
report = reports[0]
183183
keys_report = list(report.keys())
184-
for other_report in reports[1:]: # loop won't run if len(reports) < 2
184+
for other_report in reports[1:]: # loop won't run if len(reports) < 2
185185
for key in keys_report:
186186
report[key] += other_report[key]
187187
return report

pvlib/test/test_bifacial.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def test_pvfactors_timeseries_pandas_inputs(run_parallel_calculations):
108108
pd.testing.assert_series_equal(ipoa_front, expected_ipoa_front)
109109
pd.testing.assert_series_equal(ipoa_back, expected_ipoa_back)
110110

111+
111112
def test_build_1():
112113
"""Test that build correctly instantiates a dictionary, when passed a Nones
113114
for the report and pvarray arguments.
@@ -117,23 +118,26 @@ def test_build_1():
117118
expected = {'total_inc_back': [], 'total_inc_front': []}
118119
assert expected == build(report, pvarray)
119120

121+
120122
def test_merge_1():
121123
"""Test that merge correctly returns the first element of the reports
122124
argument when there is only dictionary in reports.
123125
"""
124-
test_dict = {'total_inc_back': [1,2,3], 'total_inc_front': [4,5,6]}
126+
test_dict = {'total_inc_back': [1, 2, 3], 'total_inc_front': [4, 5, 6]}
125127
reports = [test_dict]
126128
assert test_dict == merge(reports)
127129

130+
128131
def test_merge_2():
129132
"""Test that merge correctly combines two dictionary reports.
130133
"""
131-
test_dict_1 = {'total_inc_back': [1,2], 'total_inc_front': [4,5]}
134+
test_dict_1 = {'total_inc_back': [1, 2], 'total_inc_front': [4, 5]}
132135
test_dict_2 = {'total_inc_back': [3], 'total_inc_front': [6]}
133-
expected = {'total_inc_back': [1,2,3], 'total_inc_front': [4,5,6]}
136+
expected = {'total_inc_back': [1, 2, 3], 'total_inc_front': [4, 5, 6]}
134137
reports = [test_dict_1, test_dict_2]
135138
assert expected == merge(reports)
136139

140+
137141
def test_merge_3():
138142
"""Test that merge correctly combines three dictionary reports.
139143
"""

0 commit comments

Comments
 (0)