diff --git a/docs/sphinx/source/whatsnew/v0.15.3.rst b/docs/sphinx/source/whatsnew/v0.15.3.rst index 7124d28cae..43298b2b53 100644 --- a/docs/sphinx/source/whatsnew/v0.15.3.rst +++ b/docs/sphinx/source/whatsnew/v0.15.3.rst @@ -42,6 +42,7 @@ Requirements Maintenance ~~~~~~~~~~~ +* Removed unused internal function ``clearsky._is_leap_year`` (:issue:`2768`, :pull:`2813`) * Fix documentation builds on runner images lacking link-type timezones. (:issue:`2795`, :pull:`2809`) @@ -50,3 +51,4 @@ Contributors * Eesh Saxena (:ghuser:`eeshsaxena`) * Karl Hill (:ghuser:`karlhillx`) * Yonry Zhu (:ghuser:`yonryzhu`) +* Darshan Gowda (:ghuser:`dgowdaan-cmyk`) diff --git a/pvlib/clearsky.py b/pvlib/clearsky.py index 0f5ab63392..da9d197c6b 100644 --- a/pvlib/clearsky.py +++ b/pvlib/clearsky.py @@ -220,22 +220,6 @@ def lookup_linke_turbidity(time, latitude, longitude, filepath=None, return linke_turbidity -def _is_leap_year(year): - """Determine if a year is leap year. - - Parameters - ---------- - year : numeric - - Returns - ------- - isleap : array of bools - """ - isleap = ((np.mod(year, 4) == 0) & - ((np.mod(year, 100) != 0) | (np.mod(year, 400) == 0))) - return isleap - - def _interpolate_turbidity(lts, time): """ Interpolated monthly Linke turbidity onto daily values.