WattTime / pyiso

Python client libraries for ISO and other power grid data sources.
http://pyiso.readthedocs.org/
Other
238 stars 110 forks source link

BPA get_load TypeError: Cannot convert tz-naive timestamps, use tz_localize to localize #16

Closed aschn closed 9 years ago

aschn commented 9 years ago

Daylight savings time switchover issue

File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/tasks.py", line 30, in get_load data = c.get_load(**kwargs) File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/bpa.py", line 142, in get_load df.index = self.utcify_index(df.index) File "/app/.heroku/python/lib/python2.7/site-packages/pyiso/base.py", line 335, in utcify_index aware_utc_index = aware_local_index.tz_convert('UTC') File "/app/.heroku/python/lib/python2.7/site-packages/pandas/tseries/index.py", line 1502, in tz_convert raise TypeError('Cannot convert tz-naive timestamps, use ' TypeError: Cannot convert tz-naive timestamps, use tz_localize to localize

aschn commented 9 years ago

Fixed in release 0.1.13