diff --git a/docs/sphinx/source/whatsnew/v0.13.2.rst b/docs/sphinx/source/whatsnew/v0.13.2.rst index d4cd10b5e7..9a07bd21fb 100644 --- a/docs/sphinx/source/whatsnew/v0.13.2.rst +++ b/docs/sphinx/source/whatsnew/v0.13.2.rst @@ -46,6 +46,8 @@ Enhancements Documentation ~~~~~~~~~~~~~ * Provide an overview of single-diode modeling functionality in :ref:`singlediode`. (:pull:`2565`) +* Fix typo in parameter name ``atmos_refract`` in :py:func:`pvlib.solarposition.spa_python` + and :py:func:`pvlib.spa.solar_position`. (:issue:`2532`, :pull:`2592`) Testing @@ -67,3 +69,4 @@ Maintenance Contributors ~~~~~~~~~~~~ * Cliff Hansen (:ghuser:`cwhanse`) +* Joseph Radford (:ghuser:`josephradford`) diff --git a/pvlib/solarposition.py b/pvlib/solarposition.py index ba861c9d82..2b8a43e9d0 100644 --- a/pvlib/solarposition.py +++ b/pvlib/solarposition.py @@ -314,7 +314,7 @@ def spa_python(time, latitude, longitude, using time.year and time.month from pandas.DatetimeIndex. For most simulations the default delta_t is sufficient. The USNO has historical and forecasted delta_t [3]_. - atmos_refrac : float, optional + atmos_refract : float, optional The approximate atmospheric refraction (in degrees) at sunrise and sunset. how : str, optional, default 'numpy' diff --git a/pvlib/spa.py b/pvlib/spa.py index d4181aaa49..6297e88c35 100644 --- a/pvlib/spa.py +++ b/pvlib/spa.py @@ -1057,7 +1057,7 @@ def solar_position(unixtime, lat, lon, elev, pressure, temp, delta_t, degrees C; used for atmospheric correction delta_t : float or array Difference between terrestrial time and UT1. - atmos_refrac : float + atmos_refract : float The approximate atmospheric refraction (in degrees) at sunrise and sunset. numthreads: int, optional, default 8