Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added rounding of aa and b in _schumaker_qspline.py, see Issue #1311
  • Loading branch information
pmloikjuyhbn committed Sep 27, 2021
commit 8136b5e40f2f2524581da2314a20bb4e1c75b622
5 changes: 5 additions & 0 deletions 5 pvlib/ivtools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ def _schumaker_qspline(x, y):

aa = s[:-1] - delta
b = s[1:] - delta

# Since the above two lines can lead to numerical errors, aa and b
# are rounded to 0.0 is their absolute value is small enough.
aa[np.isclose(aa, 0., atol=EPS)] = 0.
b[np.isclose(b, 0., atol=EPS)] = 0.

sbar = np.zeros(k)
eta = np.zeros(k)
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.