-
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.
Add tests for time conversions in tools package (#2341)
* Add tests for tools.localize_to_utc * Add tests for datetime_to_djd and djd_to_datetime * Update what's new * Appease the linter * Fix pandas equality tests for Python 3.9 * Fix pandas equality tests for Python 3.9 more * Fix pandas equality tests for Python 3.9 more more * Bump miniimum pandas to fix bad test failure * Try alternative pandas test fix * Revert change in minimum pandas version * Fix test * Type Location's tz and pytz attributes as advertised * Add timezone type checks to Location init test * Don't parameterize repetitive tests * Update whatsnew for Location bugfix * Update docstring * Improve whatsnew formatting * Support non-fractional int and float and pytz and zoneinfo time zones * Appease the linter * Use zoneinfo as single source of truth and tz as interface point * Add zoneinfo asserts in tests * Try to fix asv ci * See if newer asv works with newer conda * Remove comments no longer needed * Remove addition of zoneinfo attribute * Revise whatsnew bugfix * Revise whatsnew bugfix more * Spell my name correctly * The linter strikes back again * Fix whatsnew after main merge * Address Cliff's comment * Adjust Location documentation * Fix indent * More docstring tweaks * Try to fix bad parens * Rearrange docstring * Appease the linter * Document pytz attribute as read only * Consistent read only * Update pvlib/location.py per review comment Co-authored-by: Cliff Hansen <[email protected]> * Add breaking change to whatsnew and fix linting * Clarify breaking change in whatsnew * Update whatsnew ordering * Implement review comments on documentation * Missed saving changes and appease the linter * Apply suggestions from code review --------- Co-authored-by: Cliff Hansen <[email protected]>
- Loading branch information
1 parent
afc90f6
commit 72ced3c
Showing
5 changed files
with
259 additions
and
56 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
Oops, something went wrong.