Commit bc66bc2
SSC: Add builtin snow depth array, support varying periods for this array. (#1335)
* minimum working example of using snow depth with user input. Not robust: only works with hourly simulation
* allow snow_array default to be of length 1 for testing (repeat 8760 times)
* first pass at editing tests to reflect new variables
* Use boolean operators correctly
* add new snow variables to tranche of pv tests
* add new defaults to pvyield common data
* add snow related vars to more tests- these tests have presaved json inputs, so the snow variables might be out of place. consider if this is the ideal way to add these test
* JSON-based tests: put new vars in test data, and remove them from test harness
* If snow data and weather file have different periods that are divisible, up/downsample snow data to match weather file. Else error
* add tests of snow data, including shorter than/longer than weather file data
* Fix bug that led to OOB when running a lifetime (vs one year) simulation with user entered snow depth data. Need to cycle back to beginning of the snow depth data for each year
---------
Co-authored-by: Paul Gilman <[email protected]>1 parent b69cd29 commit bc66bc2
File tree
11 files changed
+149
-7
lines changed- ssc
- test
- input_cases
- general_data
- input_json
- solesca
- ssc_test
11 files changed
+149
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
209 | 244 | | |
210 | 245 | | |
211 | 246 | | |
| |||
307 | 342 | | |
308 | 343 | | |
309 | 344 | | |
310 | | - | |
| 345 | + | |
311 | 346 | | |
312 | 347 | | |
313 | 348 | | |
| |||
725 | 760 | | |
726 | 761 | | |
727 | 762 | | |
| 763 | + | |
728 | 764 | | |
729 | 765 | | |
730 | 766 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
248 | | - | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| |||
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
| 301 | + | |
300 | 302 | | |
301 | 303 | | |
302 | 304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
620 | 621 | | |
621 | 622 | | |
622 | 623 | | |
623 | | - | |
| 624 | + | |
624 | 625 | | |
625 | 626 | | |
626 | 627 | | |
| |||
2445 | 2446 | | |
2446 | 2447 | | |
2447 | 2448 | | |
2448 | | - | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
2449 | 2461 | | |
2450 | | - | |
| 2462 | + | |
2451 | 2463 | | |
2452 | 2464 | | |
2453 | 2465 | | |
| |||
2544 | 2556 | | |
2545 | 2557 | | |
2546 | 2558 | | |
2547 | | - | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
2548 | 2567 | | |
2549 | 2568 | | |
2550 | 2569 | | |
| |||
Lines changed: 2 additions & 0 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
| |||
568 | 571 | | |
569 | 572 | | |
570 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
571 | 577 | | |
572 | 578 | | |
573 | 579 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
506 | 509 | | |
507 | 510 | | |
508 | 511 | | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
509 | 515 | | |
510 | 516 | | |
511 | 517 | | |
| |||
942 | 948 | | |
943 | 949 | | |
944 | 950 | | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
945 | 954 | | |
946 | 955 | | |
947 | 956 | | |
| |||
1380 | 1389 | | |
1381 | 1390 | | |
1382 | 1391 | | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
1383 | 1395 | | |
1384 | 1396 | | |
1385 | 1397 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
0 commit comments