Skip to content

Clean up some warnings in the tests: ivtools/sdm/test__fit_desoto_pvsyst_sandia.py #2494

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kandersolar
Copy link
Member

  • I am familiar with the contributing guidelines
  • 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.

The tests have been emitting some nuisance numpy warnings for a while: https://github.com/pvlib/pvlib-python/actions/runs/16008866104/job/45161784994#step:9:73

This PR fixes several of them. In the process of doing that, it made sense to refactor some code in singlediode to be a little easier to read, and likely marginally faster as well due to avoiding unnecessary repeated array subsetting.

I plan to address the remaining warnings in a separate PR.

@kandersolar kandersolar added this to the v0.13.1 milestone Jul 2, 2025
@kandersolar
Copy link
Member Author

Linter failure is for a pre-existing style choice, so I will ignore it in this PR.

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.

2 participants