Skip to content

Commit df60945

Browse files
Remove unused clearsky._is_leap_year (closes #2768) (#2813)
* Remove unused clearsky._is_leap_year (closes #2768) * Add contributor entry to whatsnew * Address review comments: fix pull number and contributor entry * Address review comments: fix pull number, contributor entry, restore blank lines
1 parent d2e6811 commit df60945

2 files changed

Lines changed: 2 additions & 16 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Requirements
4242

4343
Maintenance
4444
~~~~~~~~~~~
45+
* Removed unused internal function ``clearsky._is_leap_year`` (:issue:`2768`, :pull:`2813`)
4546
* Fix documentation builds on runner images lacking link-type timezones. (:issue:`2795`, :pull:`2809`)
4647

4748

@@ -50,3 +51,4 @@ Contributors
5051
* Eesh Saxena (:ghuser:`eeshsaxena`)
5152
* Karl Hill (:ghuser:`karlhillx`)
5253
* Yonry Zhu (:ghuser:`yonryzhu`)
54+
* Darshan Gowda (:ghuser:`dgowdaan-cmyk`)

pvlib/clearsky.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -220,22 +220,6 @@ def lookup_linke_turbidity(time, latitude, longitude, filepath=None,
220220
return linke_turbidity
221221

222222

223-
def _is_leap_year(year):
224-
"""Determine if a year is leap year.
225-
226-
Parameters
227-
----------
228-
year : numeric
229-
230-
Returns
231-
-------
232-
isleap : array of bools
233-
"""
234-
isleap = ((np.mod(year, 4) == 0) &
235-
((np.mod(year, 100) != 0) | (np.mod(year, 400) == 0)))
236-
return isleap
237-
238-
239223
def _interpolate_turbidity(lts, time):
240224
"""
241225
Interpolated monthly Linke turbidity onto daily values.

0 commit comments

Comments
 (0)