Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis builds encountering weird python error #795

Closed
tbohn opened this issue May 21, 2018 · 2 comments
Closed

Travis builds encountering weird python error #795

tbohn opened this issue May 21, 2018 · 2 comments

Comments

@tbohn
Copy link
Contributor

tbohn commented May 21, 2018

Trying to run tests on my PR #793 but all Travis builds fail. The ones I've checked get the same error, which doesn't appear to be related to my code change:

================================== FAILURES===================================
_________________________________ test_strpdmy _________________________________
def test_strpdmy():
       dmy = ffi.new("dmy_struct *")
       dates = pd.date_range('2015-12-18', '2016-12-22', freq='1D')
       date_format = '%Y-%m-%d'
       for date in dates:
           date_str = date.strftime(date_format)
           vic_lib.strpdmy(date_str.encode(), date_format.encode(), dmy)
            expected = date.to_datetime()
E           AttributeError: 'Timestamp' object has no attribute 'to_datetime'
tests/unit/shared/test_vic_time.py:374: AttributeError
========== 1 failed, 55 passed, 16 skipped, 1 xpassed in 4.87 seconds ==========
@jhamman
Copy link
Member

jhamman commented May 22, 2018

This is due to a change in pandas' api. I can put together a quick fix.

@jhamman jhamman mentioned this issue May 22, 2018
3 tasks
@jhamman
Copy link
Member

jhamman commented May 23, 2018

closed via #797

@jhamman jhamman closed this as completed May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants