-
Notifications
You must be signed in to change notification settings - Fork 1k
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
gallery example for bifacial modeling with pvfactors #1394
Conversation
Thanks @spaneja! I agree it makes sense to decide what we want the examples to do before getting into the nitty gritty about code formatting and such. First though, the docs build is failing because ReadTheDocs doesn't currently install pvfactors before trying to run the examples. Can you update this PR and add a |
added pvfactors into setup.py, cleaned up some white spacing, and hoping for the best...
Thanks @spaneja. I would vote to move forward. Generally, I think the ModelChain approach is about as clean as pvlib v0.9.0 can support. This is an important example to add, which may also help us see how to deliver bifacial capabilities through ModelChain methods. The procedural approach looks OK to me also, with the exception of the list structure for Ping me when you want to start working on commenting, etc. |
Thanks @cwhanse and @kanderso-nrel. I have gone ahead and cleaned up and edited the submissions here. Please take a look for your approval and let me know of any feedback that you have. |
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.
Thanks @spaneja, here are some notes.
|
||
# create modelchain object for bifacial system and run bifacial simulation | ||
mc_bifi = modelchain.ModelChain(system, site_location, aoi_model='no_loss') | ||
mc_bifi.run_model_from_effective_irradiance(irrad) |
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.
It's a small inelegance that specifying aoi_model
is necessary for a ModelChain that only uses run_model_from_effective_irradiance
. I don't see a way around it, so I don't think there's anything to be done in this PR, just thinking out loud about the ModelChain design.
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.
Could default to None
but then we'd need to check for a valid model in other run_model
methods.
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.
Converted to #1411
Referring to #1398, we should think about the choice of |
PSA: I have a "pre-release" of pvfactors v1.5.2 up at https://github.com/SunPower/pvfactors/releases/tag/v1.5.2. All that this left is to name it and for me to get cred's to upload to PyPI, see SunPower/pvfactors#137. |
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.
Thanks @spaneja
|
||
# create modelchain object for bifacial system and run bifacial simulation | ||
mc_bifi = modelchain.ModelChain(system, site_location, aoi_model='no_loss') | ||
mc_bifi.run_model_from_effective_irradiance(irrad) |
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.
Converted to #1411
Co-authored-by: Cliff Hansen <[email protected]>
Thanks @spaneja! |
[ ] Closes #xxxx[ ] Tests added[ ] Updates entries todocs/sphinx/source/api.rst
for API changes.docs/sphinx/source/whatsnew
for all changes. Includes link to the GitHub Issue with:issue:`num`
or this Pull Request with:pull:`num`
. Includes contributor name and/or GitHub username (link with:ghuser:`user`
).[ ] New code is fully documented. Includes numpydoc compliant docstrings, examples, and comments where necessary.The gallery does not currently have any examples for bifacial modeling. After looking into the issue, it appears that it is somewhat clunky to perform bifacial modeling with the modelchain. As such, I have created two examples of bifacial modeling, with the pvfactors approach, and would like the community to weigh in. One example uses the modelchain, while another is procedural. I will wait for feedback on which approach is more suited for the gallery.
At this time, much of the documentation inside the examples is not complete or is copy/pasted from another example. I will clean and polish this when a decision is made on modeling approach.