Commit 5f70c5a
Add bifacial scaling to Townsend snow loss model (pvlib#2756)
* Add bifacial scaling to Townsend snow loss
Add optional front_side_fraction argument to loss_townsend for bifacial snow loss adjustment. Includes test coverage for the scaling behavior.
* Update tests/test_snow.py
rewrite the test function to avoid repetition in numpy array.
Co-authored-by: Rajiv Daxini <143435106+RDaxini@users.noreply.github.com>
* Address review comments
Set front_side_fraction default to 1.0, simplify the scaling logic, clean up tests, and add a whatsnew entry.
* Updated test_snow.py
Added two newlines before the test function
* Update docs/sphinx/source/whatsnew/v0.15.2.rst
Remove the username information following format of other entries
Co-authored-by: Rajiv Daxini <143435106+RDaxini@users.noreply.github.com>
* Update pvlib/snow.py to change parentheses and period position
Parentheses and period positions are updated to follow style guide
Co-authored-by: Rajiv Daxini <143435106+RDaxini@users.noreply.github.com>
* Apply suggestion from @cwhanse
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* Apply suggestion from @cwhanse
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
---------
Co-authored-by: Rajiv Daxini <143435106+RDaxini@users.noreply.github.com>
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>1 parent 6fd4b07 commit 5f70c5a
3 files changed
Lines changed: 44 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| |||
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
296 | 303 | | |
297 | 304 | | |
298 | 305 | | |
| |||
310 | 317 | | |
311 | 318 | | |
312 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
313 | 324 | | |
314 | 325 | | |
315 | 326 | | |
| |||
384 | 395 | | |
385 | 396 | | |
386 | 397 | | |
| 398 | + | |
| 399 | + | |
387 | 400 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
0 commit comments