-
Notifications
You must be signed in to change notification settings - Fork 1.1k
deprecate clear sky default in modelchain #710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,14 +134,13 @@ The following code demonstrates how to use | |
:py:class:`~pvlib.modelchain.ModelChain` objects to accomplish our | ||
system modeling goal. ModelChain objects provide convenience methods | ||
that can provide default selections for models and can also fill | ||
necessary input data with modeled data. In our example below, we use | ||
convenience methods. For example, no irradiance data is provided as | ||
input, so the ModelChain object substitutes irradiance from a clear-sky | ||
model via the prepare_inputs method. Also, no irradiance transposition | ||
model is specified (keyword argument `transposition` for ModelChain) so | ||
the ModelChain defaults to the `haydavies` model. In this example, | ||
ModelChain infers the DC power model from the module provided by | ||
examining the parameters defined for module. | ||
necessary input data with modeled data. For example, no air temperature | ||
or wind speed data is provided in the input *weather* DataFrame, | ||
so the ModelChain object defaults to 20 C and 0 m/s. Also, no irradiance | ||
transposition model is specified (keyword argument `transposition` for | ||
ModelChain) so the ModelChain defaults to the `haydavies` model. In this | ||
example, ModelChain infers the DC power model from the module provided | ||
by examining the parameters defined for module. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. defined for the module |
||
|
||
.. ipython:: python | ||
|
||
|
@@ -157,12 +156,12 @@ examining the parameters defined for module. | |
times = naive_times.tz_localize(timezone) | ||
location = Location(latitude, longitude, name=name, altitude=altitude, | ||
tz=timezone) | ||
# very experimental | ||
weather = location.get_clearsky(times) | ||
mc = ModelChain(system, location, | ||
orientation_strategy='south_at_latitude_tilt') | ||
# model results (ac, dc) and intermediates (aoi, temps, etc.) | ||
# assigned as mc object attributes | ||
mc.run_model(times) | ||
mc.run_model(times=times, weather=weather) | ||
annual_energy = mc.ac.sum() | ||
energies[name] = annual_energy | ||
|
||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
necessary input with modeled data.