Skip to content

Address minor numpy deprecation - #2856

Open
kandersolar wants to merge 2 commits into
pvlib:mainfrom
kandersolar:np-deprecation
Open

Address minor numpy deprecation#2856
kandersolar wants to merge 2 commits into
pvlib:mainfrom
kandersolar:np-deprecation

Conversation

@kandersolar

Copy link
Copy Markdown
Member
  • [ ] Closes #xxxx
  • I am familiar with the contributing guidelines
  • [ ] I attest that all AI-generated material has been vetted for accuracy and is in compliance with the pvlib license No AI
  • 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.

Addresses this deprecation warning shown in recent test runs:

tests/test_clearsky.py::test_detect_clearsky_irregular_times
/home/runner/work/pvlib-python/pvlib-python/tests/test_clearsky.py:666: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. + 1). Please use a specific unit instead.
times[0] += 10**9

https://github.com/pvlib/pvlib-python/actions/runs/34241529820/job/102112640274#step:9:77

@kandersolar kandersolar added this to the v0.16.0 milestone Sep 11, 2026
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.

1 participant