Commit 75d092e
refactor bifacial merge, improve merge tests (#747)
* Simplify merge method.
Simplify merge method by using list and dictionary comprehensions instead of
nested for loops. This also avoids the need to check if some of the elements
of the reports arguments are None, and the need to check if reports contains
more than one report. This should also be a small performance improvement.
This change also adds a bit more detail to the docstring for the merge method.
The creation of a new empty report is also modified to no longer use an
intermediary list of keys.
* Update what's new doc.
* Update whatsnew file syntax.
* Rename whatsnew file to change format to rst.
* Fix linting errors.
* Remove pandas and numpy version reqs
* Update v0.7.1.rst
* Revert "Update v0.7.1.rst"
This reverts commit d131657.
* Revert "Remove pandas and numpy version reqs"
This reverts commit 84d7189.
* Reword elements in merge() comprehension.
* Fix handling of None values in merge.
If one of the values in the reports argument that merge() takes is a None,
this is now properly handled by being dropped.
* Remove unnecessary checks in merge().
Returns merge method to its original state with two nested for loops, but without
the checks for the number of dictionaries in the reports argument, or the check
that each element in reports is a dictionary. Reports are only created in the build
method so a test was made to ensure that build always returns a dictionary instead.
* Add tests for merge() and build().
* Fix lint errors.
* Correct import mistake.
Previous commits I made did not import the PVFactorsReportBuilder
class correctly.
* Reinsert type check in merge loop.
* Revert "Reinsert type check in merge loop."
This reverts commit eeb8053.
* Fix test_build_1 test.
* Update what's new file.
Add bullet point about added tests for bifacial.py methods.
* Fix merge conflicts in what's new file.
* Revert "Fix merge conflicts in what's new file."
This reverts commit 74c8eba.
* Revert "Update what's new file."
This reverts commit 4447e6c.
* Revert "Rename whatsnew file to change format to rst."
This reverts commit 93d0559.
* Revert "Update whatsnew file syntax."
This reverts commit c969994.
* Revert "Update what's new doc."
This reverts commit 55d8f08.
* Merge what's new updates from upstream.
* Update what's new file.1 parent e3635c2 commit 75d092e
File tree
3 files changed
+53
-12
lines changed- docs/sphinx/source/whatsnew
- pvlib
- test
3 files changed
+53
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
| 162 | + | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
| |||
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
180 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
181 | 182 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
189 | 187 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
0 commit comments