-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Purdue-bifacial-irradiance-model #1187
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
Purdue-bifacial-irradiance-model #1187
Conversation
…radiance.py and pvlib/pvl_Purdue_albedo_model.py * added trignometric functions in pvlib.tools.py * tests are yet to be added
@cwhanse Can you assign a review for this pull request. I'll be happy to merge all the changes asap :) |
@nappaillav please review the contributing guidelines, in particular the sections on code style and testing. It will be much easier to review your code when it more closely conforms to pvlib style. For help with that, take a look at the diff in the files tab of this pr and make sure that it's very nearly clean of comments from the automated systems. Thanks in advance! |
welcome back @nappaillav :) Glad to see this PR picked up again. To answer your question: I'll be a reviewer, and I'd guess @mikofski will also be interested - he can nominate himself. Before any reviews, could you:
However, I have concerns about porting that Matlab code. In your absence, I started to work on #914 and ran into a number of questions about the code. In some places, the Matlab code does not follow the referenced paper, and there are steps in the Matlab code that aren't described in the paper. Before this PR could be merged we would have to resolve these issues, probably through communication with the original author. |
Worker on the stickler corrections
Few more stickler-ci corrections
@cwhanse Update the code with Stickler corrections |
@mikofski we need to come to agreement on how to structure The other contribution is in #717 which itself is a substantial body of functions. My guess is that some of those functions are also general in nature. Ideally, a user could open |
How about making bifacial a subpackage, and then
I can volunteer to review parts of |
@mikofski yes, that's what I was imagining. There are other bifacial models in the wild which could migrate into or have a wrapper in pvlib. @wholmgren @kanderso-nrel your views on this subject are needed. |
I support a bifacial subpackage. I'm not sure about exposing the api through imports in |
@nappaillav first step is to move the code into a new module Next, I think we want to edit variable names to avoid upper case in most cases. python convention is that variables are all lower case, constants are all UPPERCASE, and Class definitions are Capitalized. We need to also change variables to their pvlib name where this name exists. That's probably a step we can work through iteratively in reviews, but you can get started with it. I would guess that most variables that are not related to rear-surface irradiance or calculating view factors are already in pvlib somewhere. |
* Pythonic contribution guidelines correction * bifacial module
@cwhanse There is already bifacial.py in the pvlib folder, hence to avoid confusion I added the bifacial model to bifacial_new. In future i'll will correct the folder name as per your suggestion and pull in the the pvlib/bifacial.py into pvlib/bifacial/ |
Closing due to merge of #717 |
added Purdue Bifractal irradince model pvlib/pvl_Purdue_bifacial_irradiance.py and pvlib/pvl_Purdue_albedo_model.py
added trignometric functions in pvlib.tools.py
tests are yet to be added
This is related to issue #863
docs/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`
).