Skip to content
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

fit_pvefficiency_adr compatibility with scipy 1.11.2 #1866

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

kandersolar
Copy link
Member

  • [ ] Closes #xxxx
  • I am familiar with the contributing guidelines
  • [ ] 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.

I am tired of waiting for the next scipy release to come out (with a fix for scipy/scipy#19103) and resolve our failing CI tests, so here is a fix on our end instead. I guess it is best to include a fix in pvlib anyway.

The problem is that the starting point for a call to curve_fit was on the boundary of the acceptable region, so I moved the initial point just inside the bounded region.

@adriesse could you please take a look and confirm the new starting point is appropriate?

@kandersolar kandersolar added this to the v0.10.2 milestone Sep 19, 2023
@cwhanse
Copy link
Member

cwhanse commented Sep 19, 2023

If you didn't submit this, I would have :)

Copy link
Member

@AdamRJensen AdamRJensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks @kandersolar

@kandersolar
Copy link
Member Author

I'm going to merge this now in the interest of not holding up releasing v0.10.2. Can always follow up later if we have overlooked some subtlety here.

@kandersolar kandersolar merged commit fc8eebb into pvlib:main Sep 21, 2023
30 checks passed
@kandersolar kandersolar deleted the scipy branch September 21, 2023 14:13
@adriesse
Copy link
Member

Looks fine to me. Perhaps I would have chosen 0.1, but it doesn't matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants