Skip to content

Further fixes for Scipy 1.15 update for PR and nightly CI #6213

Merged
rapids-bot[bot] merged 9 commits intorapidsai:branch-25.02from
dantegd:fix-scipy-115
Jan 13, 2025
Merged

Further fixes for Scipy 1.15 update for PR and nightly CI #6213
rapids-bot[bot] merged 9 commits intorapidsai:branch-25.02from
dantegd:fix-scipy-115

Conversation

@dantegd
Copy link
Copy Markdown
Member

@dantegd dantegd commented Jan 9, 2025

Nightly CI revealed a bug between hypothesis floating_dtypes(sizes=(32, 64) and building sparse matrices, this PR uses st.sampled_from((np.float32, np.float64) to solve the issue.

Additionally, cudf.pandas active made one dataset in ARIMA pytests fail, so disabling that one while we look further into it.

@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Jan 9, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the Cython / Python Cython or Python issue label Jan 9, 2025
@dantegd dantegd added bug Something isn't working non-breaking Non-breaking change and removed Cython / Python Cython or Python issue labels Jan 9, 2025
@dantegd
Copy link
Copy Markdown
Member Author

dantegd commented Jan 9, 2025

/ok to test

@github-actions github-actions Bot added the Cython / Python Cython or Python issue label Jan 9, 2025
@dantegd
Copy link
Copy Markdown
Member Author

dantegd commented Jan 10, 2025

/ok to test

@dantegd dantegd marked this pull request as ready for review January 10, 2025 21:43
@dantegd dantegd requested a review from a team as a code owner January 10, 2025 21:43

@given(
dtype=floating_dtypes(sizes=(32, 64)),
dtype=st.sampled_from((np.float32, np.float64)),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For my education: can you explain a bit why this is needed? A quick look at floating_dtypes makes me think it also uses sampled_from on the inside. But maybe returns strings instead of dtype objects?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The floating_dtypes will generate all possible dtypes for the given sizes, including those with different endianness:

>>> from hypothesis.extra.numpy import floating_dtypes
>>> f = floating_dtypes(sizes=(16,32))
>>> f.example()
dtype('float16')
>>> f.example()
dtype('>f2')
>>> f.example()
dtype('float32')
>>> f.example()
dtype('>f4')
>>> f.example()
dtype('float16')

The change here represents an stronger assumption on the expected types.

Copy link
Copy Markdown
Contributor

@csadorf csadorf left a comment

Choose a reason for hiding this comment

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

LGTM.

I would suggest that maybe long-term we aim to use a centrally defined list of supported types. I had previously made an attempt to establish this here.

@dantegd
Copy link
Copy Markdown
Member Author

dantegd commented Jan 13, 2025

/merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Cython / Python Cython or Python issue non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants