-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Added rounding of aa and b in _schumaker_qspline.py, see Issue #1311 #1315
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
Conversation
I'll take a look at the failing test. I can add the text for the whatsnew document, and take care of assigning labels. Don't worry about the API item. |
I removed the data that was causing the test failure. Those data were made up to check consistency between Matlab and python implementations of I also split the Why did the removed data fail the test? The single-curve fitting function is rather sensitive to its input data. Rounding small values to 0 changes the spline fit, which affects the cocontent integral, which affects a regression, etc. This sensitivity is why the diode model fitting in |
any objections to merging this? |
no, this is all fine for me, thanks again for running the tests ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without carefully engaging with the issue and only looking at the diff, I have two quick comments:
- We need a 0.9.1 entry in the
whatsnew.rst
file here: https://github.com/pvlib/pvlib-python/blame/master/docs/sphinx/source/whatsnew.rst#L8 Edit - fine to do this in a follow up PR. - Would it be better to add a new test that asserts the correct behavior rather just remove a test? Edit - I read Cliff's comment above and it seems fine just drop the test. Sorry for writing too quickly.
will merge when CI is done |
Thanks @Antoine-0 |
I merely noticed an issue, thanks to you for updating the tests and the great work you put into pvlib ! |
I'm not sure how to do the following items :
[ ] Updates entries todocs/sphinx/source/api.rst
for API changes.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`
).