Commit e50def0
Implement irradiance.complete_irradiance with component sum equations (#1567)
* added new irradiance function for component sum
* added to docstrings
* updated docstrings
* updated methods with new component_sum_irradiance() function
* added associated unit test for the new component sum function
* added units tests for the component_sum_irradiance() function
* added whatsnew file for v0.9.4
* fixed modelchain error to stop unit test erroring
* removed clearsky_dni arg for cases where it's not used
* updated naming conventions for component_sum_irradiance function in modelchains
* updated the routines to remove pep8 errors, added to clearsky_dni docstring
* updated the routine to return dataframe after calculating component sum + other suggestions
* updated the PR based on @kanderso-nrel review
* made updates based on kanderso-nrel's suggestions
* updated all the unit tests to pass
* Update pvlib/irradiance.py
Co-authored-by: Kevin Anderson <kevin.anderson@nrel.gov>
* Update pvlib/irradiance.py
Co-authored-by: Kevin Anderson <kevin.anderson@nrel.gov>
* moved warning out of dni generation call (just ghi and dhi)
* fix sticklerci formatting errors
* Update pvlib/irradiance.py
Co-authored-by: Kevin Anderson <kevin.anderson@nrel.gov>
* updates to name-changed to 'complete_irradiance'
* fixed over-indentation error
* removed default none from function params
* Update docs/sphinx/source/whatsnew/v0.9.4.rst
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
* made updates based on @cwhanse's recommendations
* Update pvlib/irradiance.py
Co-authored-by: Will Holmgren <william.holmgren@gmail.com>
* Update pvlib/irradiance.py
Co-authored-by: Will Holmgren <william.holmgren@gmail.com>
* changed to pytest error raise based on @wholmgren's recommendation
* Made updates to code based on @wholmgren's recommendations
* fix pep8 error 2
* updated modelchains to use zenith instead of apparent zenith
* check that unit tests run
* undo ModelChain.complete_irradiance test changes
Co-authored-by: Perry <kperry@nrel.gov>
Co-authored-by: Kevin Anderson <kevin.anderson@nrel.gov>
Co-authored-by: Cliff Hansen <cwhanse@sandia.gov>
Co-authored-by: Will Holmgren <william.holmgren@gmail.com>1 parent dd6062a commit e50def0
File tree
5 files changed
+233
-91
lines changed- docs/sphinx/source
- reference
- whatsnew
- pvlib
- tests
5 files changed
+233
-91
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | | - | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
2948 | 2949 | | |
2949 | 2950 | | |
2950 | 2951 | | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
| 2993 | + | |
| 2994 | + | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
| 3001 | + | |
| 3002 | + | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
| 3006 | + | |
| 3007 | + | |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
| 3012 | + | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | | - | |
| 1292 | + | |
| 1293 | + | |
1293 | 1294 | | |
1294 | 1295 | | |
1295 | 1296 | | |
1296 | 1297 | | |
1297 | 1298 | | |
1298 | | - | |
1299 | 1299 | | |
1300 | 1300 | | |
1301 | 1301 | | |
| |||
1304 | 1304 | | |
1305 | 1305 | | |
1306 | 1306 | | |
1307 | | - | |
1308 | 1307 | | |
1309 | 1308 | | |
1310 | 1309 | | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
1316 | 1317 | | |
1317 | 1318 | | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
1322 | 1325 | | |
1323 | 1326 | | |
1324 | | - | |
1325 | | - | |
1326 | | - | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
1327 | 1333 | | |
1328 | 1334 | | |
1329 | 1335 | | |
| |||
0 commit comments