-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Upgrade bifacial functions to work with pvfactors v1.4.1 #934
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
Conversation
Thanks @anomam! Should we deprecate the |
Hi @wholmgren , thanks for the message and sorry for the delay. On the other hand I do want to follow pvlib's best practices and I can bring it back and add a deprecation message to it if that's what the team needs. Please let me know! |
Sorry I wasn't clear. I'm all for removing the parallel mode, but wondering if we should keep those kwargs in pvlib until 0.8. The kwargs would become non-functional and only serve to emit a warning. The purpose would be to avoid breaking user code. But I don't have a strong feeling about whether or not it is worth the effort in this case. |
@wholmgren , thanks a lot for clarifying. I added a couple deprecation warnings in 7ba10f8. I hope this works! @cwhanse , I think that this PR is ready for another review. Please let me know if you need any additional changes. |
front_poa_irradiance: numeric | ||
poa_front: numeric | ||
Calculated incident irradiance on the front surface of the PV modules | ||
(W/m2) | ||
back_poa_irradiance: numeric | ||
poa_back: numeric | ||
Calculated incident irradiance on the back surface of the PV modules | ||
(W/m2) | ||
df_registries: pandas DataFrame | ||
DataFrame containing detailed outputs of the simulation; for | ||
instance the shapely geometries, the irradiance components incident on | ||
all surfaces of the PV array (for all timestamps), etc. | ||
In the pvfactors documentation, this is refered to as the "surface | ||
registry". | ||
poa_front_absorbed: numeric | ||
Calculated absorbed irradiance on the front surface of the PV modules | ||
(W/m2), after AOI losses | ||
poa_back_absorbed: numeric | ||
Calculated absorbed irradiance on the back surface of the PV modules | ||
(W/m2), after AOI losses |
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.
If I understand the diff correctly, this change to the output will break user code. Ok with me but we should note it in the API Changes section. I guess there's not much point in deprecating the parallel kwargs if we're just changing the return type, so maybe best to just make users deal with the pain in the next release. I'm guessing that users of the bifacial module are relatively tolerant of api changes.
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 for the feedback @wholmgren :
- I could revert the output change and return some kind of placeholder for
df_registries
(pvfactors v1.4.1 does not use registries anymore). Or I can just update the API changes section. Just let me know what you prefer! - I don't mind removing the deprecation warnings as well
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.
In this case I think we're better off immediately conforming to the pvfactors 1.4 API, provided the API change is documented. Any objections?
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.
Hi @wholmgren , sorry for the delay. I removed the deprecated inputs and warnings, and updated the API changes section of the newest whatsnew file. Please let me know if you need any other fixes
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 @anomam!
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`
).Brief description