From 70d481a435e9c4019a1144b0dafe747988154b8e Mon Sep 17 00:00:00 2001 From: dgowdaan-cmyk Date: Tue, 7 Jul 2026 20:19:14 +0530 Subject: [PATCH 1/4] Remove unused clearsky._is_leap_year (closes #2768) --- docs/sphinx/source/whatsnew/v0.15.3.rst | 2 +- pvlib/clearsky.py | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/docs/sphinx/source/whatsnew/v0.15.3.rst b/docs/sphinx/source/whatsnew/v0.15.3.rst index 87ded069ee..889392e1f4 100644 --- a/docs/sphinx/source/whatsnew/v0.15.3.rst +++ b/docs/sphinx/source/whatsnew/v0.15.3.rst @@ -38,7 +38,7 @@ Requirements Maintenance ~~~~~~~~~~~ - +* Removed unused internal function ``clearsky._is_leap_year`` (:issue:`2768`, :pull:`XXXX`) Contributors ~~~~~~~~~~~~ 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. From 46455b5850ccf0561af2cbc416bc65d7e8e8393e Mon Sep 17 00:00:00 2001 From: dgowdaan-cmyk Date: Tue, 7 Jul 2026 20:23:24 +0530 Subject: [PATCH 2/4] Add contributor entry to whatsnew --- docs/sphinx/source/whatsnew/v0.15.3.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/sphinx/source/whatsnew/v0.15.3.rst b/docs/sphinx/source/whatsnew/v0.15.3.rst index 889392e1f4..e434fe3c22 100644 --- a/docs/sphinx/source/whatsnew/v0.15.3.rst +++ b/docs/sphinx/source/whatsnew/v0.15.3.rst @@ -43,3 +43,4 @@ Maintenance Contributors ~~~~~~~~~~~~ +* Darshan Gowda (:ghuser:`dgowdaan-cmyk`) \ No newline at end of file From b5e47176fccd7fe163edaf868220efc99f4f7b31 Mon Sep 17 00:00:00 2001 From: dgowdaan-cmyk Date: Tue, 7 Jul 2026 22:17:52 +0530 Subject: [PATCH 3/4] Address review comments: fix pull number and contributor entry --- docs/sphinx/source/whatsnew/v0.15.3.rst | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/docs/sphinx/source/whatsnew/v0.15.3.rst b/docs/sphinx/source/whatsnew/v0.15.3.rst index 36bd4d01d4..bc1aaadc07 100644 --- a/docs/sphinx/source/whatsnew/v0.15.3.rst +++ b/docs/sphinx/source/whatsnew/v0.15.3.rst @@ -1,58 +1,44 @@ .. _whatsnew_0_15_3: - v0.15.3 (Anticipated September, 2026) ------------------------------------- Breaking Changes ~~~~~~~~~~~~~~~~ - Deprecations ~~~~~~~~~~~~ - Bug fixes ~~~~~~~~~ - Enhancements ~~~~~~~~~~~~ * Ensure all timezones are available in all OSs. (:issue:`2795`, :pull:`2809`) - Documentation ~~~~~~~~~~~~~ * Fix broken link in GitHub Contributing tab. (:issue:`2628`, :pull:`2806`) * Fixed broken ``interval`` keyword argument in the ``oedi_9068`` gallery example; the correct parameter name is ``time_step``. (:issue:`2791`) - Testing ~~~~~~~ - Benchmarking ~~~~~~~~~~~~ - Requirements ~~~~~~~~~~~~ - Maintenance ~~~~~~~~~~~ -* Removed unused internal function ``clearsky._is_leap_year`` (:issue:`2768`, :pull:`XXXX`) - -Contributors -~~~~~~~~~~~~ - -* Darshan Gowda (:ghuser:`dgowdaan-cmyk`) +* 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`) - Contributors ~~~~~~~~~~~~ * Eesh Saxena (:ghuser:`eeshsaxena`) * Karl Hill (:ghuser:`karlhillx`) * Yonry Zhu (:ghuser:`yonryzhu`) +* Darshan Gowda (:ghuser:`dgowdaan-cmyk`) \ No newline at end of file From 9cc0cdad9ecfdb976e860d781748f1799a75d3bf Mon Sep 17 00:00:00 2001 From: dgowdaan-cmyk Date: Tue, 7 Jul 2026 22:36:04 +0530 Subject: [PATCH 4/4] Address review comments: fix pull number, contributor entry, restore blank lines --- docs/sphinx/source/whatsnew/v0.15.3.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/sphinx/source/whatsnew/v0.15.3.rst b/docs/sphinx/source/whatsnew/v0.15.3.rst index bc1aaadc07..43298b2b53 100644 --- a/docs/sphinx/source/whatsnew/v0.15.3.rst +++ b/docs/sphinx/source/whatsnew/v0.15.3.rst @@ -1,44 +1,54 @@ .. _whatsnew_0_15_3: + v0.15.3 (Anticipated September, 2026) ------------------------------------- Breaking Changes ~~~~~~~~~~~~~~~~ + Deprecations ~~~~~~~~~~~~ + Bug fixes ~~~~~~~~~ + Enhancements ~~~~~~~~~~~~ * Ensure all timezones are available in all OSs. (:issue:`2795`, :pull:`2809`) + Documentation ~~~~~~~~~~~~~ * Fix broken link in GitHub Contributing tab. (:issue:`2628`, :pull:`2806`) * Fixed broken ``interval`` keyword argument in the ``oedi_9068`` gallery example; the correct parameter name is ``time_step``. (:issue:`2791`) + Testing ~~~~~~~ + Benchmarking ~~~~~~~~~~~~ + 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`) + Contributors ~~~~~~~~~~~~ * Eesh Saxena (:ghuser:`eeshsaxena`) * Karl Hill (:ghuser:`karlhillx`) * Yonry Zhu (:ghuser:`yonryzhu`) -* Darshan Gowda (:ghuser:`dgowdaan-cmyk`) \ No newline at end of file +* Darshan Gowda (:ghuser:`dgowdaan-cmyk`)