Skip to content

spectral_factor_firstsolar: rename pw to precipitable_water #1768

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 4 commits into from
Jun 15, 2023

Conversation

kandersolar
Copy link
Member

  • [ ] Closes #xxxx
  • I am familiar with the contributing guidelines
  • [ ] Tests added
  • [ ] Updates entries in docs/sphinx/source/reference for API changes.
  • Adds description and name entries in the appropriate "what's new" file in 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.
  • Pull request is nearly complete and ready for detailed review.
  • Maintainer: Appropriate GitHub Labels (including remote-data) and Milestone are assigned to the Pull Request and linked Issue.

spectral_factor_firstsolar (formerly first_solar_spectral_correction) has a pw parameter. This PR renames it to precipitable_water for consistency with the rest of pvlib.

@kandersolar kandersolar added this to the 0.10.0 milestone Jun 12, 2023
kandersolar added a commit to Jacc0027/pvlib-python that referenced this pull request Jun 12, 2023
- reorder and rename parameters to match pvlib#1768
- remove reference parameters
- shorten/simplify docstring
- restructure calculation to be more readable
Copy link
Member

@AdamRJensen AdamRJensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

precipitable_water should be also added to the Variables and Symbols.

@@ -317,6 +310,14 @@ def spectral_factor_firstsolar(pw, airmass_absolute, module_type=None,
modules with very similar quantum efficiency should be similar,
in most cases limiting the need for module specific coefficients.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When did we start leaving spaces between parameter descriptions? 😯

Copy link
Member Author

@kandersolar kandersolar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

precipitable_water should be also added to the Variables and Symbols.

It was added in #1623: 50e1998#diff-c687fd096ceeeeaebdf4846d37b19d06e6a6c9c409a47e89bbfa3e23446ffa42

Copy link
Member

@wholmgren wholmgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the kwarg change is worth a deprecation. I'd consider removing them too.

@kandersolar kandersolar merged commit 763dd0a into pvlib:main Jun 15, 2023
@kandersolar kandersolar deleted the fslr_pw branch June 15, 2023 17:36
kandersolar added a commit that referenced this pull request Jun 23, 2023
* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Merge branch 'Spectral-corrections' of https://github.com/Jacc0027/pvlib-python into Spectral-corrections

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update pvlib/atmosphere.py

Co-authored-by: Kevin Anderson <[email protected]>

* relocation of parameter descriptions according to the order of input parameters

* Update api.rst

Adding atmosphere.AM_AOD_PW_spectral correction as requested in #1296

* remove input screening

* move reference values to be optional parameters

* fix implementation issues

* first cut at tests using file from Jacc0027

* CI correction. Line #215

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Testing tests

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update atmosphere.py

* Test Review

* Update atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

* Update test_atmosphere.py

* Update atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update pvlib/atmosphere.py

Co-authored-by: Cliff Hansen <[email protected]>

* Update atmosphere.py

Added the requested changes

* Update atmosphere.py

Fixed 2 blank line errors.

* Update test_atmosphere.py

Updated test function name to: caballero_spectral_correction

* Update api.rst

Updated the atmosphere function name from AM_AOD_PW_spectral_correction to caballero_spectral_correction

* Update test_atmosphere.py

Updated some functions calls from AM_AOD_PW_spectral_correction to caballero_spectral_correction

* Update atmosphere.py

Updated the logic to show errors.

* Update pvlib/atmosphere.py

Co-authored-by: Cliff Hansen <[email protected]>

* Update pvlib/atmosphere.py

Co-authored-by: Cliff Hansen <[email protected]>

* Update pvlib/atmosphere.py

Co-authored-by: Cliff Hansen <[email protected]>

* Update pvlib/atmosphere.py

Co-authored-by: Cliff Hansen <[email protected]>

* Update pvlib/atmosphere.py

Co-authored-by: Cliff Hansen <[email protected]>

* Update pvlib/atmosphere.py

Co-authored-by: Cliff Hansen <[email protected]>

* Update atmosphere.py

* Update atmosphere.py

* Update atmosphere.py

Trying to solve #814 and #817 issues.

* Update atmosphere.py

* Update api.rst

* Delete api.rst

* Update test_atmosphere.py

* Update atmosphere.py

* Update test_atmosphere.py

* Update atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* Update test_atmosphere.py

* update function logic and get tests working

* Update atmosphere.py

Updated both "TODO" issues.

* Update atmosphere.py

* Update v0.9.6.rst

Added caballero spectral correction as a new function.

* Update airmass_atmospheric.rst

Added a new function: atmosphere.caballero_spectral_correction

* Update pvlib/atmosphere.py

Co-authored-by: Anton Driesse <[email protected]>

* rename function and move to pvlib.spectrum

following the conventions set out in #1628

* misc cleanup

- reorder and rename parameters to match #1768
- remove reference parameters
- shorten/simplify docstring
- restructure calculation to be more readable

---------

Co-authored-by: Kevin Anderson <[email protected]>
Co-authored-by: Kevin Anderson <[email protected]>
Co-authored-by: Cliff Hansen <[email protected]>
Co-authored-by: Anton Driesse <[email protected]>
Co-authored-by: Kevin Anderson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants