Repository navigation
Conversation
|
Coverage shortfall is because codecov (as configured here) can't monitor lines inside a function that is just-in-time compiled for numba |
|
Rough speed-up estimates. TL:DR after JIT penalty is paid, the numba speed-up is roughly 25x. Two tests:
My target use case is to compute a year of IV curves for an array with both series and parallel mismatch. The algorithm fits a spline to each string's IV curve and uses the spline to combine strings to get the parallel IV curve. This use case probably involves 100k-ish spline fits for a year of modeling. Table notes:
Numbers are elapsed seconds. Comparing the 1st and 2nd IDE executions shows the penalty for JIT compilation. Numba
|
| # run tests generated by original Matlab implementation | ||
| @requires_numba | ||
| @pytest.mark.parametrize('x,y,expected', [ | ||
| (np.array([0., 1., 2., 3., 4., 1., 2., 3., 4., 5.]), |
There was a problem hiding this comment.
The first entry is removed since the new functions require the independent variable to be strictly increasing. The old function sorted.
[ ] Updates entries indocs/sphinx/source/referencefor API changes.docs/sphinx/source/whatsnewfor 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`).remote-data) and Milestone are assigned to the Pull Request and linked Issue.Adds a numba-capable version of _schumaker_qspline.
use_numba.pvlib.ivtools.sdeaccommodates the new output. Output with 1D inputs includes the new output to avoid having the API depending on the input shape.