Skip to content

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

Merged
kandersolar merged 1 commit intopvlib:mainfrom
kandersolar:test-warnings
Jul 9, 2025
Merged

Clean up some warnings in the tests: ivtools/sdm/test__fit_desoto_pvsyst_sandia.py#2494
kandersolar merged 1 commit intopvlib:mainfrom
kandersolar:test-warnings

Conversation

@kandersolar
Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

@kandersolar kandersolar merged commit c1633df into pvlib:main Jul 9, 2025
30 of 31 checks passed
@kandersolar kandersolar deleted the test-warnings branch July 9, 2025 17:52
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