Skip to content

Commit 70d481a

Browse files
committed
Remove unused clearsky._is_leap_year (closes #2768)
1 parent 0f7a205 commit 70d481a

2 files changed

Lines changed: 1 addition & 17 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Requirements
3838

3939
Maintenance
4040
~~~~~~~~~~~
41-
41+
* Removed unused internal function ``clearsky._is_leap_year`` (:issue:`2768`, :pull:`XXXX`)
4242

4343
Contributors
4444
~~~~~~~~~~~~

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)