Skip to content

Commit 1c60a5d

Browse files
Improve pvlib.spa speed (#1748)
* initial optimization * combine longitude and obliquity nutations * minor optimization to heliocentric latitude * reuse memory in several places * remove unused function * minor optimizations (reuse calls to radians()) * Revert "reuse memory in several places" This reverts commit 75e6265. * numba fix * fix tests * whatsnew * whatsnew * bugfix * don't combine coefficient arrays into a common table * factor out common calculation * ease back claimed improvement in whatsnew * stickler * work around strange numba issue (/bug?) * stickler and fix test oversight * updates from review * less is more Co-Authored-By: Will Holmgren <[email protected]> --------- Co-authored-by: Will Holmgren <[email protected]>
1 parent ad832cd commit 1c60a5d

File tree

3 files changed

+334
-375
lines changed

3 files changed

+334
-375
lines changed

docs/sphinx/source/whatsnew/v0.9.6.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Enhancements
3737
the option of controlling what NSRDB endpoint is used. (:pull:`1736`)
3838
* :py:func:`pvlib.iotools.get_psm3` now uses the new NSRDB 3.2.2 endpoint for
3939
hourly and half-hourly single-year datasets. (:issue:`1591`, :pull:`1736`)
40+
* The default solar position algorithm (NREL SPA) is now 50-100% faster. (:pull:`1748`)
4041

4142
Bug fixes
4243
~~~~~~~~~

0 commit comments

Comments
 (0)