Skip to content

Commit

Permalink
Reinsert type check in merge loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermorgan committed Jul 12, 2019
1 parent 39c2889 commit eeb8053
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pvlib/bifacial.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def merge(reports):
report = reports[0]
keys_report = list(report.keys())
for other_report in reports[1:]: # loop won't run if len(reports) < 2
for key in keys_report:
report[key] += other_report[key]
if isinstance(other_report, dict):
for key in keys_report:
report[key] += other_report[key]
return report

0 comments on commit eeb8053

Please sign in to comment.