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 benchmark failure with numpy 1.20+ #39795

Merged
merged 3 commits into from
Feb 16, 2021

Conversation

simonjayhawkins
Copy link
Member

xref #38379 (review)

This will be blocking using numpy 1.20 on Github actions Checks, xref #36092 (comment)

@simonjayhawkins simonjayhawkins added the CI Continuous Integration label Feb 13, 2021
@simonjayhawkins simonjayhawkins added this to the 1.2.3 milestone Feb 13, 2021
@@ -135,7 +135,7 @@ def time_isin_long_series_long_values_floats(self):

class IsInLongSeriesLookUpDominates:
params = [
["int64", "int32", "float64", "float32", "object", "Int64", "Float64"],
["int64", "int32", "float64", "float32", "object"],
Copy link
Member

Choose a reason for hiding this comment

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

Can you instead raise a NotImplementedError in the setup below if dtype in ("Int64", "Float64") and np.__version >+ "1.20.0" ?

That keeps the benchmark running for if you don't have numpy 1.20 installed (although I don't know how often the environment gets updated on our benchmark server)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks @jorisvandenbossche . done.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks!

Further follow-up question: 1) is there actually an issue about this failure? 2) can you add a link to that issue as a TODO comment where raising the NotImplementedError?

Copy link
Member Author

Choose a reason for hiding this comment

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

is there actually an issue about this failure?

#39844

can you add a link to that issue as a TODO comment where raising the NotImplementedError?

as a follow-up

@jreback jreback merged commit 4f14b24 into pandas-dev:master Feb 16, 2021
@jreback
Copy link
Contributor

jreback commented Feb 16, 2021

thanks @simonjayhawkins

@jreback
Copy link
Contributor

jreback commented Feb 16, 2021

@meeseeksdev backport 1.2.x

@simonjayhawkins
Copy link
Member Author

changed milestone, backport not needed. see #39842 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants