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

Fix flaky test_to_from_pandas #1020

Merged
merged 1 commit into from
Sep 2, 2024
Merged

Conversation

eivindjahren
Copy link
Collaborator

@eivindjahren eivindjahren commented Sep 2, 2024

# round to hours
roundtrip.index = roundtrip.index.round(freq="H")
baseline.index = baseline.index.round(freq="H")
# round to days
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we leave an explanation here for why we round (so much). Related to some int32 handling of dates?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, its because there is so much conversion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not pushed yet (?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to push, is updated now.

Copy link
Contributor

@berland berland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@berland berland merged commit 3712d21 into equinor:main Sep 2, 2024
19 checks passed
@eivindjahren eivindjahren deleted the fix_flaky_test branch September 2, 2024 11:10
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

Successfully merging this pull request may close these issues.

2 participants