Skip to content

fix error in test_get_sun_rise_set_transit #161

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

Merged
merged 6 commits into from
May 9, 2016

Conversation

wholmgren
Copy link
Member

The recently released pandas 0.18.1 changed the way that pd.to_datetime handles fractions of seconds, which caused the test_get_sun_rise_set_transit function to fail since the expected times were specified to microseconds. This PR changes the expected times only have 1 second precision, and rounds the output of get_sun_rise_set_transit for the test. The problem is that the Timestamp rounding doesn't work on pandas 0.13-0.16. I don't want to raise the version requirements just for this test, so it gets a skip decorator instead. It's a bad hack that I'll try to revisit after the workshop.

@wholmgren wholmgren added this to the 0.3.3 milestone May 9, 2016
@wholmgren wholmgren merged commit 7e03bec into pvlib:master May 9, 2016
@wholmgren wholmgren deleted the sunriseset branch May 20, 2016 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant