Skip to content

Commit 3b7dc8b

Browse files
committed
make compatible with pandas 0.13.1
1 parent b3a091f commit 3b7dc8b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pvlib/irradiance.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import logging
1111
pvl_logger = logging.getLogger('pvlib')
1212

13+
import datetime
14+
1315
import numpy as np
1416
import pandas as pd
1517

@@ -167,7 +169,7 @@ def _doy_to_timestamp(doy, epoch='2013-12-31'):
167169
-------
168170
pd.Timestamp
169171
"""
170-
return pd.Timestamp('2013-12-31') + pd.Timedelta(days=float(doy))
172+
return pd.Timestamp('2013-12-31') + datetime.timedelta(days=float(doy))
171173

172174

173175
def aoi_projection(surf_tilt, surf_az, sun_zen, sun_az):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
setuptools_kwargs = {
3333
'zip_safe': False,
3434
'install_requires': ['numpy >= 1.7.0',
35-
'pandas >= 0.15',
35+
'pandas >= 0.13.1',
3636
'pytz',
3737
'six',
3838
'pyephem',

0 commit comments

Comments
 (0)