-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calculate Relative Humidity via Magnus Tetens Equation (#2286)
* changed default types to float in solarposition.py * switched to floats in the docstrings and removed type hints * added magnus_tetens equations * line too long in solarposition.py * revert solarposition.py to pre-PR state * set default magnus coefficients per conversation in #1744 * moved equations to atmosphere.py, updated function names to suggested, changed type hints in docstring, changed to suggested coefficient format * moved tests to atmosphere.py tests * changed reference to WMO * dry-bult temperature in the docstring * revert pyproject.toml * remove uv.lock * Update pvlib/atmosphere.py Co-authored-by: Anton Driesse <[email protected]> * fixing flake8 errors for tdew/rh functions I have left the formatting of functions outside of the tdew and rh conversion functions. I can format them to satisfy flake8 linter if that is desired by maintainers. Just let me know how I can help. * Update pvlib/atmosphere.py Co-authored-by: Kevin Anderson <[email protected]> * Update pvlib/atmosphere.py Co-authored-by: Kevin Anderson <[email protected]> * Update pvlib/atmosphere.py Co-authored-by: Kevin Anderson <[email protected]> * Update pvlib/atmosphere.py Co-authored-by: Kevin Anderson <[email protected]> * Update pvlib/atmosphere.py Co-authored-by: Kevin Anderson <[email protected]> * Update pvlib/atmosphere.py Co-authored-by: Kevin Anderson <[email protected]> * added some unit tests for different coefficients and input types * refactored tests, removed magnus_tetens, updated whatsnew * reference and whatsnew * revert line 36 (linter) * Update pvlib/atmosphere.py Co-authored-by: Anton Driesse <[email protected]> * Update docs/sphinx/source/whatsnew/v0.11.2.rst Co-authored-by: Kevin Anderson <[email protected]> * Update pvlib/atmosphere.py Co-authored-by: Kevin Anderson <[email protected]> * Update pvlib/tests/test_atmosphere.py Co-authored-by: Kevin Anderson <[email protected]> * Update pyproject.toml Co-authored-by: Kevin Anderson <[email protected]> * Update pvlib/atmosphere.py Co-authored-by: Kevin Anderson <[email protected]> * Update pvlib/atmosphere.py Co-authored-by: Adam R. Jensen <[email protected]> * Update pvlib/atmosphere.py Co-authored-by: Adam R. Jensen <[email protected]> * Update pvlib/atmosphere.py Co-authored-by: Adam R. Jensen <[email protected]> * Update pvlib/atmosphere.py Co-authored-by: Adam R. Jensen <[email protected]> * added a round-trip test for magnus tetens Added a new test to show that you can calculate relative humidity from dewpoint and then calculate dewpoint from relative humidity and it will be the same as the original dewpoint values * temperature -> temp_air; dewpoint -> temp_dew * miscellaneous other cleanup * tests: put assertions next to calculations * linter --------- Co-authored-by: Kurt Rhee <[email protected]> Co-authored-by: Anton Driesse <[email protected]> Co-authored-by: Kurt Rhee <[email protected]> Co-authored-by: Kevin Anderson <[email protected]> Co-authored-by: Adam R. Jensen <[email protected]>
- Loading branch information
1 parent
c12a477
commit cb37129
Showing
4 changed files
with
231 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 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 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