-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> * Update pvlib/irradiance.py Co-authored-by: Kevin Anderson <[email protected]> * moved warning out of dni generation call (just ghi and dhi) * fix sticklerci formatting errors * Update pvlib/irradiance.py Co-authored-by: Kevin Anderson <[email protected]> * 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 <[email protected]> * made updates based on @cwhanse's recommendations * Update pvlib/irradiance.py Co-authored-by: Will Holmgren <[email protected]> * Update pvlib/irradiance.py Co-authored-by: Will Holmgren <[email protected]> * 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 <[email protected]> Co-authored-by: Kevin Anderson <[email protected]> Co-authored-by: Cliff Hansen <[email protected]> Co-authored-by: Will Holmgren <[email protected]>
- Loading branch information
1 parent
dd6062a
commit e50def0
Showing
5 changed files
with
233 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.